Skip to content

Commit

Permalink
Run spec test in fork not threads
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Jan 12, 2024
1 parent b9d6e04 commit 07868f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/beacon-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"download-spec-tests": "node --loader=ts-node/esm test/spec/downloadTests.ts",
"test:spec:bls": "vitest --run --config vitest.config.spec.ts --dir test/spec/bls/",
"test:spec:general": "vitest --run --config vitest.config.spec.ts --dir test/spec/general/",
"test:spec:minimal": "LODESTAR_PRESET=minimal vitest --run --passWithNoTests --config vitest.config.spec.ts --dir test/spec/presets/",
"test:spec:mainnet": "LODESTAR_PRESET=mainnet vitest --run --passWithNoTests --config vitest.config.spec.ts --dir test/spec/presets/",
"test:spec:minimal": "LODESTAR_PRESET=minimal vitest --run --config vitest.config.spec.ts --dir test/spec/presets/",
"test:spec:mainnet": "LODESTAR_PRESET=mainnet vitest --run --config vitest.config.spec.ts --dir test/spec/presets/",
"test:spec": "yarn test:spec:bls && yarn test:spec:general && yarn test:spec:minimal && yarn test:spec:mainnet",
"check-readme": "typescript-docs-verifier"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/beacon-node/vitest.config.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import {defineConfig, mergeConfig} from "vitest/config";
import vitestConfig from "../../vitest.base.config";
import vitestConfig from "root/vitest.base.config";

export default mergeConfig(
vitestConfig,
defineConfig({
test: {
globalSetup: ["./test/globalSetup.ts"],
testTimeout: 60_000,
passWithNoTests: true,
pool: "forks",
},
})
);

0 comments on commit 07868f4

Please sign in to comment.