Skip to content

Commit d52db42

Browse files
committed
feat: auto-cleanup test-workspace after test suite completion
- Add test:cleanup script to remove test-workspace folder - Chain cleanup after vitest run in test script - Keeps repo clean after running tests
1 parent 26135a6 commit d52db42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"start": "echo 'running start instead of dev'",
88
"create-polyglot": "node ./bin/index.js",
9-
"test": "vitest run",
9+
"test": "vitest run && npm run test:cleanup",
10+
"test:cleanup": "rm -rf test-workspace",
1011
"test:watch": "vitest",
1112
"coverage": "vitest run --coverage",
1213
"prepublishOnly": "npm test",

0 commit comments

Comments
 (0)