diff --git a/config/jest.config.js b/config/jest.config.js index fd72ccf..bddbcd5 100644 --- a/config/jest.config.js +++ b/config/jest.config.js @@ -1,6 +1,7 @@ const path = require('path'); module.exports = { + testEnvironment: "jsdom", collectCoverage: true, preset: 'ts-jest', rootDir: path.resolve(__dirname, '..'), diff --git a/tests/api.spec.ts b/tests/api.spec.ts index 0ff8259..735db12 100644 --- a/tests/api.spec.ts +++ b/tests/api.spec.ts @@ -1,7 +1,3 @@ -/** - * @jest-environment jsdom - */ - import skift from '../src/index'; import { SplitTest } from '../src/splitTest'; diff --git a/tests/config.spec.ts b/tests/config.spec.ts index be783ee..5ec3392 100644 --- a/tests/config.spec.ts +++ b/tests/config.spec.ts @@ -1,7 +1,3 @@ -/** - * @jest-environment jsdom - */ - import config from '../src/config'; import skift from '../src/index';