From 07868f4b1a6efdf36e595d997c6c86b539caed62 Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Fri, 12 Jan 2024 16:17:12 +0100 Subject: [PATCH] Run spec test in fork not threads --- packages/beacon-node/package.json | 4 ++-- packages/beacon-node/vitest.config.spec.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/beacon-node/package.json b/packages/beacon-node/package.json index e6c3fbed7249..c006aed515d4 100644 --- a/packages/beacon-node/package.json +++ b/packages/beacon-node/package.json @@ -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" }, diff --git a/packages/beacon-node/vitest.config.spec.ts b/packages/beacon-node/vitest.config.spec.ts index 2003884a7351..2cd5209d3576 100644 --- a/packages/beacon-node/vitest.config.spec.ts +++ b/packages/beacon-node/vitest.config.spec.ts @@ -1,5 +1,5 @@ import {defineConfig, mergeConfig} from "vitest/config"; -import vitestConfig from "../../vitest.base.config"; +import vitestConfig from "root/vitest.base.config"; export default mergeConfig( vitestConfig, @@ -7,6 +7,8 @@ export default mergeConfig( test: { globalSetup: ["./test/globalSetup.ts"], testTimeout: 60_000, + passWithNoTests: true, + pool: "forks", }, }) );