Skip to content

Commit

Permalink
Fix: tests don't stop running in gh actions (#227)
Browse files Browse the repository at this point in the history
* update vitest version

* Update vitest config
  • Loading branch information
kloV148 authored Mar 25, 2024
1 parent 4805eca commit 4ace00c
Show file tree
Hide file tree
Showing 3 changed files with 458 additions and 289 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"ts-node": "^10.9.1",
"tsc-alias": "^1.8.6",
"typescript": "^5.0.4",
"vitest": "^0.34.5"
"vitest": "^1.4.0"
},
"dependencies": {
"@codex-team/config-loader": "^1.0.0",
Expand Down
8 changes: 7 additions & 1 deletion vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
pool: 'forks',
poolOptions: {
forks: {
singleFork: true,
},
},
setupFiles: [ 'src/tests/utils/setup.ts' ],
coverage: {
reporter: ['text', 'json-summary', 'json'],
Expand All @@ -12,7 +18,7 @@ export default defineConfig({
lines: 80,
branches: 80,
functions: 80,
statements: 80
statements: 80,
},
},
},
Expand Down
Loading

0 comments on commit 4ace00c

Please sign in to comment.