-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ci.ts
More file actions
30 lines (28 loc) · 1.01 KB
/
vitest.config.ci.ts
File metadata and controls
30 lines (28 loc) · 1.01 KB
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
import { defineConfig } from 'vitest/config'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
root: './',
passWithNoTests: true,
environment: 'node',
include: ['**/*.{test,spec}.{ts,tsx,js,jsx}'],
fileParallelism: false,
setupFiles: ['tests/base/setup.ts', 'tests/postgres/setup.ts'],
coverage: {
enabled: true,
reporter: ['text', 'json', 'html', 'lcov'],
thresholds: {
statements: 65,
functions: 70,
branches: 55,
lines: 65,
},
reportsDirectory: 'coverage',
exclude: ['**/node_modules/**', '**/dist/**', '**/cypress/**', '**/.{idea,git,cache,output,temp}/**', '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,arkormx,prettier}.config.*', '**/.h3ravel/**'],
},
env: {
NODE_ENV: 'test',
},
}
})