forked from Karanjot786/TermUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
25 lines (24 loc) · 800 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
25 lines (24 loc) · 800 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 { defineConfig } from 'vitest/config';
export default defineConfig({
esbuild: {
jsx: 'automatic',
jsxImportSource: '@termuijs/jsx',
},
test: {
globals: true,
environment: 'node',
bail: 0,
include: ['packages/*/src/**/*.test.ts', 'packages/*/src/**/*.test.tsx', 'scripts/**/*.test.ts', 'website/src/**/*.test.ts', 'website/scripts/**/*.test.mjs'],
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'lcov'],
include: ['packages/*/src/**/*.ts'],
exclude: ['**/*.test.ts', '**/index.ts', '**/node_modules/**', '**/dist/**'],
thresholds: {
lines: 80,
functions: 80,
branches: 75,
},
},
},
});