Skip to content

Commit

Permalink
Move Vitest flag to config (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeterush authored Feb 5, 2024
1 parent a871c4c commit 96040f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"lint": "eslint --max-warnings=0 .",
"issue": "cd issue && tsc && node issue.js",
"prepare": "copyfiles -f ./node_modules/@dlemstra/magick-native/NOTICE . && copyfiles -f ./node_modules/@dlemstra/magick-native/magick.wasm dist",
"test": "vitest run --poolOptions.threads.isolate false",
"test": "vitest run",
"test-dist": "node tests/dist/test-dist",
"update-index": "cd tools && tsc && node update-index.js ../src"
},
Expand Down
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export default defineConfig({
globals: true,
setupFiles: './tests/custom-environment.ts',
logHeapUsage: true,
poolOptions: {
threads: {
isolate: false,
},
},
},
resolve: {
alias: {
Expand Down

0 comments on commit 96040f7

Please sign in to comment.