Skip to content

Commit

Permalink
fix: change vitest config for the using keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Mar 13, 2024
1 parent b3abebf commit d80f310
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/beacon-node/vitest.e2e.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import {defineConfig, mergeConfig} from "vitest/config";
import {buildTargetPlugin} from "../../scripts/vitest/plugins/buildTargetPlugin";
import vitestConfig from "../../vitest.base.e2e.config";

export default mergeConfig(
vitestConfig,
defineConfig({
// We need to change the build target to test code which is based on `using` keyword
// Note this target is not fully supported for the browsers
plugins: [buildTargetPlugin("es2022")],
test: {
globalSetup: ["./test/globalSetup.ts"],
},
Expand Down
4 changes: 4 additions & 0 deletions packages/beacon-node/vitest.spec.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import {defineConfig, mergeConfig} from "vitest/config";
import {buildTargetPlugin} from "../../scripts/vitest/plugins/buildTargetPlugin";
import vitestConfig from "../../vitest.base.spec.config";

export default mergeConfig(
vitestConfig,
defineConfig({
// We need to change the build target to test code which is based on `using` keyword
// Note this target is not fully supported for the browsers
plugins: [buildTargetPlugin("es2022")],
test: {
globalSetup: ["./test/globalSetup.ts"],
},
Expand Down

0 comments on commit d80f310

Please sign in to comment.