forked from ChildMindInstitute/mindlogger-web-refactor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
27 lines (26 loc) · 710 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
27 lines (26 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { defineConfig } from 'vitest/config'
import {resolve} from "path";
export default defineConfig({
test: {
setupFiles: ['./src/test/vitest.setup.ts'],
environment: 'jsdom',
include: ['src/**/*.test.ts', 'src/**/*.test.tsx'], // only include unit/integration tests
exclude: ['e2e', 'node_modules', 'dist'], // exclude E2E and build folders
server: {
deps: {
inline: ['vitest-canvas-mock'],
},
},
globals: true,
css: true,
environmentOptions: {
jsdom: {
resources: 'usable',
},
},
alias: {
'~': resolve(__dirname, 'src'),
Buffer: 'buffer',
},
},
})