Skip to content

Commit

Permalink
chore(test): update test config
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Oct 16, 2023
1 parent 7cd2e4d commit 6e2ff02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
9 changes: 9 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
root: __dirname,
watch: false,
pool: 'forks',
environment: 'jsdom',
poolOptions: {
forks: {
minForks: 1,
maxForks: 8,
},
},
logHeapUsage: true,
coverage: {
enabled: true,
reporter: ['text', 'html', 'lcov', 'clover'],
Expand Down

0 comments on commit 6e2ff02

Please sign in to comment.