Skip to content

Commit

Permalink
✅ [test] use happy-dom instead of jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
higuaifan committed Feb 19, 2024
1 parent 9c8e38c commit 6df23e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
6 changes: 3 additions & 3 deletions lib/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'],
}
}
},
},
});

0 comments on commit 6df23e2

Please sign in to comment.