unit test dependancies
This commit is contained in:
@ -13,4 +13,11 @@ export default defineConfig({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
// enable jest-like global test APIs
|
||||
globals: true,
|
||||
// simulate DOM with happy-dom
|
||||
// (requires installing happy-dom as a peer dependency)
|
||||
environment: "happy-dom",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user