mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-22 16:03:29 +10:00
chore: migrate from jsdom to happy-dom for testing environment
This commit is contained in:
+15
-1
@@ -27,10 +27,24 @@ export const createVitestProjectConfig = ({
|
||||
test: {
|
||||
name,
|
||||
environment,
|
||||
environmentOptions: {
|
||||
happyDOM: {
|
||||
settings: {
|
||||
disableJavaScriptFileLoading: true,
|
||||
disableCSSFileLoading: true,
|
||||
navigation: {
|
||||
disableMainFrameNavigation: true,
|
||||
disableChildFrameNavigation: true,
|
||||
disableChildPageNavigation: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
setupFiles: [setupFile],
|
||||
include: ["src/**/*.{test,spec}.?(c|m)[jt]s?(x)"],
|
||||
exclude: ["node_modules", "dist", ".output", "coverage", "reports"],
|
||||
pool: "forks",
|
||||
pool: "threads",
|
||||
isolate: false,
|
||||
passWithNoTests: true,
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
|
||||
Reference in New Issue
Block a user