-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
44 lines (43 loc) · 1017 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
44 lines (43 loc) · 1017 Bytes
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
44
import path from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
server: {
host: '127.0.0.1',
},
test: {
api: {
host: '127.0.0.1',
port: 63315,
strictPort: true,
},
globals: true,
environment: 'happy-dom',
include: ['tests/unit/**/*.test.ts', 'tests/unit/**/*.test.tsx'],
setupFiles: [],
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'lcov'],
include: ['src/**/*.ts'],
exclude: [
'tests/**',
'**/*.d.ts',
'src/**/*.tsx',
'src/types/**',
'src/contexts/**',
'src/components/ui/**',
'src/instrumentation.ts',
'src/instrumentation-client.ts',
'src/server/auth/config.ts',
'src/server/auth/index.ts',
'src/server/db/index.ts',
'src/server/db/schema.ts',
'src/server/db/seed.ts',
],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});