-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (27 loc) · 1020 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
28 lines (27 loc) · 1020 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
28
import { configDefaults, defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
exclude: [
...configDefaults.exclude,
'apps/studio/tests/e2e/**',
// Server tests use the server-side `@` alias and run with their own config.
'apps/server/src/**/*.test.ts',
],
coverage: {
provider: 'v8',
reporter: ['text', 'html'],
},
alias: {
'@': path.resolve(__dirname, './apps/studio/src'),
'@thingsvis/kernel': path.resolve(__dirname, './packages/thingsvis-kernel/src'),
'@thingsvis/schema': path.resolve(__dirname, './packages/thingsvis-schema/src'),
'@thingsvis/ui': path.resolve(__dirname, './packages/thingsvis-ui/src'),
'@thingsvis/utils': path.resolve(__dirname, './packages/thingsvis-utils/src'),
'@thingsvis/widget-sdk': path.resolve(__dirname, './packages/thingsvis-widget-sdk/src'),
},
},
});