Skip to content

Commit

Permalink
test: use no-isolate instead of vmThreads (2x faster)
Browse files Browse the repository at this point in the history
  • Loading branch information
j4k0xb committed Jul 11, 2024
1 parent 2d7735a commit afd8aea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "webcrack",
"private": true,
"type": "module",
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"test": "vitest --pool=vmThreads",
"test:coverage": "vitest --coverage",
"test": "vitest --no-isolate",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
Expand All @@ -22,6 +22,5 @@
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
},
"name": "webcrack"
}
}
2 changes: 1 addition & 1 deletion packages/webcrack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"tmp": "node esbuild.config.js && node --enable-source-maps dist/cli.js tmp/test.js -f -o tmp/webcrack-out",
"lint": "eslint src test",
"lint:fix": "eslint src test --fix",
"test": "vitest --pool=vmThreads"
"test": "vitest --no-isolate"
},
"repository": {
"type": "git",
Expand Down
2 changes: 0 additions & 2 deletions packages/webcrack/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ import { defineProject } from 'vitest/config';
export default defineProject({
test: {
setupFiles: join(__dirname, 'test', 'setup.ts'),
include: ['**/*.test.ts'],
isolate: false,
},
});

0 comments on commit afd8aea

Please sign in to comment.