diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-14 16:59:24 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-14 17:02:05 -0500 |
| commit | b13b5b617022a679d93128bbee6032ea1bb31147 (patch) | |
| tree | e3c516b9d10a405ba3f499e643f116af98437f34 /vite.config.js | |
| parent | 8635f98de0b0ccd0448d1519ffb28936b711b5ac (diff) | |
Add in start of tests
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js index 61ba597..8d6866d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,6 +3,12 @@ import { defineConfig } from 'vite'; export default defineConfig({ plugins: [sveltekit()], + test: { + // If you are testing components client-side, you need to setup a DOM environment. + // If not all your files should have this environment, you can use a + // `// @vitest-environment jsdom` comment at the top of the test files instead. + environment: 'jsdom' + }, // Tell Vitest to use the `browser` entry points in `package.json` files, // even though it's running in Node resolve: process.env.VITEST ? { conditions: ['browser'] } : undefined, |
