forked from devhatt/octopost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
35 lines (33 loc) · 978 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
34
35
import react from '@vitejs/plugin-react-swc';
import svgr from 'vite-plugin-svgr';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
import viteConfig from './vite.config';
export default defineConfig({
plugins: [tsconfigPaths(), react(), svgr()],
resolve: viteConfig.resolve,
server: { open: false },
test: {
coverage: {
exclude: ['src/**/*.stories.tsx'],
include: ['src/**/*.ts', 'src/**/*.tsx'],
provider: 'istanbul',
reporter: ['json', 'json-summary', 'html'],
reportOnFailure: true,
thresholds: {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
},
css: {
modules: { classNameStrategy: 'non-scoped' },
},
environment: 'jsdom',
exclude: ['src/**/*.ct.spec.ts', 'src/**/*.ct.spec.tsx'],
globals: true,
include: ['src/**/*.spec.ts', 'src/**/*.spec.tsx'],
setupFiles: ['src/setupTests.ts'],
},
});