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:
Hornwitser committed 2023-08-26 17:11:47 +02:00
1 parent 425daac6b6
commit 55da662344
1 file changed
+2 -1
+2 -1
View File
@@ -2,7 +2,8 @@
"name": "root",
"private": true,
"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",
"cover": "nyc pnpm test",
"fast-cover": "FAST_TEST=y nyc pnpm test",