attempt mitigating race condition during test "upload.interrupted"
Massimo Melina committed
Apr 15, 2025 at 22:47 UTC
5f258cfb75e2be753bdb88a9acf97535a59772d5
1 file changed
+1
-1
package.json
+1
-1
@@ -19,7 +19,7 @@
19
"server-for-test": "node dist/src --cwd . --config tests --debug && rm custom.html",
20
"server-for-test-dev": "cross-env DEV=1 FRONTEND_PROXY=3005 ADMIN_PROXY=3006 nodemon --ignore tests/ --watch src -e ts,tsx --exec ts-node src -- --cwd . --config tests",
21
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
22
- "test-with-server": "node dist/src --cwd . --config tests & pid=$! && mocha -r ts-node/register 'tests/**/*.ts'; mocha_exit=$?; kill $pid; exit $mocha_exit",
22
+ "test-with-server": "node dist/src --cwd . --config tests & pid=$! && sleep 2 && mocha -r ts-node/register 'tests/**/*.ts'; mocha_exit=$?; kill $pid; exit $mocha_exit",
23
"test-ui": "npx playwright test --ui",
24
"pub": "cd dist && npm publish",
25
"dist": "npm run build-all && npx playwright test && npm run dist-bin",