Skip to content

Commit

Permalink
test: move vitest options to config (#3318)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Oct 22, 2024
1 parent 75e93ba commit 4e92fde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"dev": "tsup --watch",
"gas-report": "gas-report --save gas-report.json",
"lint": "solhint --config ./.solhint.json 'src/**/*.sol'",
"test": "vitest --run --passWithNoTests --no-file-parallelism && forge test",
"test": "vitest --run && forge test",
"test:ci": "pnpm run test"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ export default defineConfig({
test: {
globalSetup: [`${__dirname}/test-setup/global/arktype.ts`],
setupFiles: [],
passWithNoTests: true,
// Temporarily set a low teardown timeout because anvil hangs otherwise
// Could move this timeout to anvil setup after https://github.com/wevm/anvil.js/pull/46
teardownTimeout: 500,
hookTimeout: 15000,
// Temporarily disable file parallelism until we improve MUD config imports (https://github.com/latticexyz/mud/pull/3290)
fileParallelism: false,
},
server: {
watch: {
Expand Down

0 comments on commit 4e92fde

Please sign in to comment.