-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.mts
More file actions
31 lines (30 loc) · 812 Bytes
/
vitest.config.mts
File metadata and controls
31 lines (30 loc) · 812 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
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./test.setup.ts'],
coverage: {
provider: 'istanbul', // or 'c8'
clean: true,
all: true,
include: ['src/lib/**/*'],
exclude: ['src/lib/use-combined-key-event-listener'],
reporter:['html','text']
},
include: ['src/lib/**/*.test.{tsx,ts}'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'./src/config/**',
'./scripts/*',
'./apps/*',
],
},
clearScreen: true,
})