-
Notifications
You must be signed in to change notification settings - Fork 4
/
vite.config.base.mjs
38 lines (35 loc) · 1011 Bytes
/
vite.config.base.mjs
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
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
export const viteBaseConfig = defineConfig({
plugins: [nxViteTsPaths()],
// Uncomment this if you are using workers.
// worker: {
// plugins: [
// viteTsConfigPaths({
// root: '../../',
// }),
// ],
// },
test: {
globals: true,
watch: false,
environment: 'node',
passWithNoTests: true,
reporters: ['default'],
coverage: {
provider: 'v8',
exclude: ['node_modules/', '**/types', '*.mjs'],
thresholds: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
include: [
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'tests/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
],
},
});