Skip to content

Commit 53c3210

Browse files
committed
Switch to using buildtools testing
1 parent 4caa3cc commit 53c3210

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

devserver/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"devDependencies": {
2828
"@commander-js/extra-typings": "^13.0.0",
29+
"@sourceacademy/modules-buildtools": "workspace:^",
2930
"@types/react": "^18.3.1",
3031
"@types/react-dom": "^18.3.1",
3132
"@vitest/browser": "^3.2.3",
@@ -40,7 +41,7 @@
4041
"dev": "vite",
4142
"lint": "eslint src",
4243
"postinstall": "playwright install --with-deps",
43-
"test": "vitest --config ./vite.config.ts --project \"Dev Server\"",
44+
"test": "buildtools test .",
4445
"tsc": "tsc --project ./tsconfig.json"
4546
}
4647
}

lib/buildtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"lint": "eslint src",
3939
"prepare": "node ./build.js",
4040
"tsc": "tsc --project ./tsconfig.json",
41-
"test": "vitest --project \"Build Tools\""
41+
"test": "buildtools test ."
4242
}
4343
}

lib/lintplugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
},
2626
"devDependencies": {
2727
"@sourceacademy/lib-compiler": "workspace:^",
28+
"@sourceacademy/modules-buildtools": "workspace:^",
2829
"@typescript-eslint/rule-tester": "^8.33.1",
29-
"typescript": "^5.8.2",
30-
"vitest": "^3.2.3"
30+
"typescript": "^5.8.2"
3131
},
3232
"scripts": {
3333
"build": "tsc --project ./tsconfig.prod.json && node ./build.js",
3434
"lint": "eslint src",
3535
"prepare": "yarn build",
3636
"tsc": "tsc --project ./tsconfig.json",
37-
"test": "vitest --project \"Lint Plugin\""
37+
"test": "buildtools test ."
3838
}
3939
}

lib/markdown-tree/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"type": "module",
77
"devDependencies": {
88
"@sourceacademy/lib-compiler": "workspace:^",
9+
"@sourceacademy/modules-buildtools": "workspace:^",
910
"@types/lodash": "^4.14.198",
1011
"@types/markdown-it": "^14.1.2",
11-
"typescript": "^5.8.2",
12-
"vitest": "^3.2.3"
12+
"typescript": "^5.8.2"
1313
},
1414
"exports": {
1515
".": {
@@ -27,6 +27,6 @@
2727
"scripts": {
2828
"build": "node ./build.js",
2929
"prepare": "yarn build",
30-
"test": "vitest --project \"Markdown Tree Plugin\""
30+
"test": "buildtools test ."
3131
}
3232
}

lib/modules-lib/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"type": "module",
66
"devDependencies": {
7+
"@sourceacademy/modules-buildtools": "workspace:^",
78
"@types/react": "^18.3.1",
89
"@types/react-dom": "^18.3.1",
910
"@vitejs/plugin-react": "^4.5.1",
@@ -45,6 +46,6 @@
4546
"lint": "eslint src",
4647
"prepare": "yarn build && playwright install --with-deps",
4748
"tsc": "tsc --project ./tsconfig.json",
48-
"test": "vitest --project \"Modules Library\""
49+
"test": "buildtools test ."
4950
}
5051
}

yarn.lock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3337,10 +3337,10 @@ __metadata:
33373337
resolution: "@sourceacademy/lint-plugin@workspace:lib/lintplugin"
33383338
dependencies:
33393339
"@sourceacademy/lib-compiler": "workspace:^"
3340+
"@sourceacademy/modules-buildtools": "workspace:^"
33403341
"@typescript-eslint/rule-tester": "npm:^8.33.1"
33413342
eslint: "npm:^9.31.0"
33423343
typescript: "npm:^5.8.2"
3343-
vitest: "npm:^3.2.3"
33443344
peerDependencies:
33453345
"@stylistic/eslint-plugin": ^4.4.1
33463346
"@typescript-eslint/utils": ^8.33.1
@@ -3359,11 +3359,11 @@ __metadata:
33593359
resolution: "@sourceacademy/markdown-plugin-directory-tree@workspace:lib/markdown-tree"
33603360
dependencies:
33613361
"@sourceacademy/lib-compiler": "workspace:^"
3362+
"@sourceacademy/modules-buildtools": "workspace:^"
33623363
"@types/lodash": "npm:^4.14.198"
33633364
"@types/markdown-it": "npm:^14.1.2"
33643365
lodash: "npm:^4.17.21"
33653366
typescript: "npm:^5.8.2"
3366-
vitest: "npm:^3.2.3"
33673367
yaml: "npm:^2.8.0"
33683368
peerDependencies:
33693369
markdown-it: "*"
@@ -3407,6 +3407,7 @@ __metadata:
34073407
"@blueprintjs/core": "npm:^5.10.2"
34083408
"@blueprintjs/icons": "npm:^5.9.0"
34093409
"@commander-js/extra-typings": "npm:^13.0.0"
3410+
"@sourceacademy/modules-buildtools": "workspace:^"
34103411
"@sourceacademy/modules-lib": "workspace:^"
34113412
"@types/react": "npm:^18.3.1"
34123413
"@types/react-dom": "npm:^18.3.1"
@@ -3453,6 +3454,7 @@ __metadata:
34533454
dependencies:
34543455
"@blueprintjs/core": "npm:^5.10.2"
34553456
"@blueprintjs/icons": "npm:^5.9.0"
3457+
"@sourceacademy/modules-buildtools": "workspace:^"
34563458
"@types/react": "npm:^18.3.1"
34573459
"@types/react-dom": "npm:^18.3.1"
34583460
"@vitejs/plugin-react": "npm:^4.5.1"

0 commit comments

Comments
 (0)