Skip to content

Commit 21f1d84

Browse files
committed
fix: remove -p flag from test script to prevent git operation errors
The -p flag in npm-run-all was causing tests to run in parallel, which led to 'Cannot log after tests are done' errors with git operations. These errors don't appear when running test:extension alone. The issue occurs because git-based tests create temporary directories and run async operations that can interfere with each other when executed in parallel. Running tests sequentially resolves this cleanly. While it might increase total test time slightly, it ensures more reliable and consistent test results.
1 parent a866a1c commit 21f1d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
"package": "npm-run-all -p build:webview build:esbuild check-types lint",
317317
"pretest": "npm run compile",
318318
"dev": "cd webview-ui && npm run dev",
319-
"test": "npm-run-all -p test:*",
319+
"test": "npm-run-all test:*",
320320
"test:extension": "jest",
321321
"test:webview": "cd webview-ui && npm run test",
322322
"prepare": "husky",

0 commit comments

Comments
 (0)