-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
42 lines (41 loc) · 1008 Bytes
/
vitest.config.js
File metadata and controls
42 lines (41 loc) · 1008 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { defineConfig } from 'vite';
import viteCommon from './vite-common';
import path from 'path';
/// <reference types="vitest" />
export default defineConfig({
...viteCommon,
root: './',
resolve: {
alias: {
'@App': path.resolve(__dirname, './src/web'),
'@rize/alert': path.resolve(__dirname, './src/error/fakeRizeAlert.ts'),
'@rize/PlatformConfig': path.resolve(__dirname, './src/web/WebConfig.tsx'),
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
include: ['src/**/*.test.tsx', 'src/**/*.test.ts'],
threads: 6,
testTimeout: 3000,
// coverage: {
// provider: 'istanbul',
// include: [
// 'src/**/*.{ts,tsx}'
// ],
// exclude: [
// 'node_modules/**',
// 'dist/**',
// 'src/tauri',
// 'src/capacitor',
// 'src/**/*.d.ts',
// 'src/**/*.{test,spec}.{ts,tsx}',
// 'src/test/Test.tsx'
// ],
// all: true,
// reporter: ['json'],
// reportsDirectory: './.nyc_output'
// },
},
});