forked from devhatt/octopost-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
33 lines (31 loc) · 819 Bytes
/
vitest.config.ts
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
import path from 'node:path';
import url from 'node:url';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
tsconfigPaths({
projects: ['tsconfig.json', 'tsconfig.build.json'],
root: path.dirname(url.fileURLToPath(import.meta.url)),
}),
],
test: {
coverage: {
exclude: ['src/config', 'src/tests'],
include: ['src'],
provider: 'istanbul',
reporter: ['html', 'json-summary', 'json', 'text-summary'],
reportOnFailure: true,
thresholds: {
branches: 85,
functions: 85,
lines: 85,
statements: 85,
},
},
globals: true,
include: ['src/**/*.test.ts'],
setupFiles: ['src/tests/setup-tests.ts'],
watch: false,
},
});