unit test dependancies

This commit is contained in:
Gator
2022-12-23 12:27:58 +01:00
parent e4f8b8d6bc
commit f351f37c46
4 changed files with 2283 additions and 3 deletions

View File

@ -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",
},
});