diff --git a/lib/package.json b/lib/package.json index 6c5a9c45..fe38998e 100644 --- a/lib/package.json +++ b/lib/package.json @@ -45,8 +45,8 @@ "@vitest/coverage-v8": "1.3.0", "@vue/test-utils": "^2.4.4", "dayjs": "^1.11.10", + "happy-dom": "^13.3.8", "interactjs": "^1.10.26", - "jsdom": "^24.0.0", "vitest": "^1.3.0", "vue": "^3.4.19" }, diff --git a/lib/vitest.config.ts b/lib/vitest.config.ts index 8a349751..1bccffc4 100644 --- a/lib/vitest.config.ts +++ b/lib/vitest.config.ts @@ -14,12 +14,12 @@ import Jsx from '@vitejs/plugin-vue-jsx'; export default defineConfig({ plugins: [Vue(), Jsx()], test: { - environment: 'jsdom', + environment: 'happy-dom', clearMocks: true, coverage: { provider: 'v8', all: true, include: ['components/**', 'compositions/**'], - } - } + }, + }, });