forked from EdgeTTS/EdgeTTS.github.io
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
25 lines (24 loc) · 732 Bytes
/
vitest.config.ts
File metadata and controls
25 lines (24 loc) · 732 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
import path from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
include: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'scripts/**/*.test.ts'],
exclude: ['node_modules', 'dist', 'src/test/llm-real.test.ts'],
globals: true,
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'lcov'],
include: ['src/**/*.ts', 'src/**/*.tsx'],
exclude: ['src/test/**', 'src/**/*.test.ts', 'src/**/*.test.tsx', 'src/index.tsx'],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
react: 'preact/compat',
'react-dom': 'preact/compat',
},
},
});