mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 16:23:12 +09:00
Rebuild TypeScript files on test
Prevent testing the wrong files by making sure the TypeScript build is up to date before running the tests.
This commit is contained in:
1 parent
425daac6b6
commit
55da662344
1 file changed
+2
-1
+2
-1
@@ -2,7 +2,8 @@
|
|||||||
"name": "root",
|
"name": "root",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --check-leaks -R spec --recursive test \"plugins/*/test/**\"",
|
"build": "tsc --build",
|
||||||
|
"test": "pnpm run build && mocha --check-leaks -R spec --recursive test \"plugins/*/test/**\"",
|
||||||
"fast-test": "FAST_TEST=y pnpm test",
|
"fast-test": "FAST_TEST=y pnpm test",
|
||||||
"cover": "nyc pnpm test",
|
"cover": "nyc pnpm test",
|
||||||
"fast-cover": "FAST_TEST=y nyc pnpm test",
|
"fast-cover": "FAST_TEST=y nyc pnpm test",
|
||||||
|
|||||||
Reference in new issue
Block a user