Skip to content

Commit c8c5b1e

Browse files
committed
Use lerna to run the tests
1 parent 1d01f1e commit c8c5b1e

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"build": "npm run prettier:check && npm run clean && npm run build:@microsoft/*",
4141
"build:@microsoft/*": "lerna run build --scope '@microsoft/*'",
4242
"clean": "lerna run --parallel --stream --scope '@microsoft/*' clean",
43-
"test:browser": "vitest run --browser.name=chrome --browser.headless",
44-
"test:node": "vitest --run",
43+
"test:browser": "lerna run --scope '@microsoft/*' test:browser",
44+
"test:node": "lerna run --scope '@microsoft/*' test:node",
4545
"test": "npm run test:node && npm run test:browser",
4646
"tsc:version": "tsc --version",
4747
"prettier:base": "prettier --parser typescript",

tsconfig.base.json

+27-27
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,33 @@
2121
"es6",
2222
"DOM.Iterable"
2323
],
24-
"outDir": "dist/es"
24+
"outDir": "dist/es",
25+
"paths": {
26+
"@microsoft/kiota-abstractions": [
27+
"./abstractions"
28+
],
29+
"@microsoft/kiota-serialization-form": [
30+
"./serialization/form"
31+
],
32+
"@microsoft/kiota-serialization-json": [
33+
"./serialization/json"
34+
],
35+
"@microsoft/kiota-http-fetchlibrary": [
36+
"./http/fetchlibrary"
37+
],
38+
"@microsoft/microsoft-graph-client": [
39+
"./graph"
40+
],
41+
"@microsoft/kiota-serialization-text": [
42+
"./serialization/text"
43+
],
44+
"@microsoft/kiota-authentication-azure": [
45+
"./authentication/azure"
46+
],
47+
"@microsoft/kiota-authentication-spfx": [
48+
"./authentication/spfx"
49+
],
50+
},
2551
},
2652
"references": [
2753
{
@@ -52,30 +78,4 @@
5278
"tests",
5379
"./test/**/*.ts"
5480
],
55-
"paths": {
56-
"@microsoft/kiota-abstractions": [
57-
"./abstractions"
58-
],
59-
"@microsoft/kiota-serialization-form": [
60-
"./serialization/form"
61-
],
62-
"@microsoft/kiota-serialization-json": [
63-
"./serialization/json"
64-
],
65-
"@microsoft/kiota-http-fetchlibrary": [
66-
"./http/fetchlibrary"
67-
],
68-
"@microsoft/microsoft-graph-client": [
69-
"./graph"
70-
],
71-
"@microsoft/kiota-serialization-text": [
72-
"./serialization/text"
73-
],
74-
"@microsoft/kiota-authentication-azure": [
75-
"./authentication/azure"
76-
],
77-
"@microsoft/kiota-authentication-spfx": [
78-
"./authentication/spfx"
79-
],
80-
},
8181
}

0 commit comments

Comments
 (0)