-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
executable file
·43 lines (42 loc) · 1.32 KB
/
Copy pathvitest.config.ts
File metadata and controls
executable file
·43 lines (42 loc) · 1.32 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
31
32
33
34
35
36
37
38
39
40
41
42
43
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vitest/config';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
test: {
setupFiles: ['./vitest.setup.tsx'],
include: [
'tests/unit-tests/*.(spec|test).(ts|tsx)',
'tests/unit-tests/**/*.(spec|test).(ts|tsx)',
'tests/unit-tests/***/**/*.(spec|test).(ts|tsx)',
],
globals: true,
environment: 'jsdom',
env: {
NEXT_PUBLIC_BLOG_GRAPHQL_URL: 'http://localhost:8000/graphql',
NEXT_PUBLIC_ROOT_URL: 'http://localhost:3000',
},
exclude: ['node_modules/', 'dist/', 'tests/'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'tests/',
'.next/',
'next-env.d.ts',
'apollo-client.ts',
'*.config.ts',
'*.config.mjs',
'**/layout.tsx',
'**/constants.ts',
'**/interface.ts',
'**/definitions.ts',
'**/loading.tsx',
'**/skeletons.tsx',
'playwright-report/',
],
},
},
});