-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
37 lines (36 loc) · 1.06 KB
/
vite.config.ts
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
/// <reference types="vitest" />
/// <reference types="vite/client" />
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
import tsconfigPaths from 'vite-tsconfig-paths'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths(), VitePWA({ registerType: 'autoUpdate' })],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/config/tests.tsx'],
coverage: {
all: true,
include: [
'src/components/**/*.{ts,tsx}',
'src/config/**/*.{ts,tsx}',
'src/constants/**/*.{ts,tsx}',
'src/context/**/*.{ts,tsx}',
'src/helpers/**/*.{ts,tsx}',
'src/hooks/**/*.{ts,tsx}',
'src/layouts/**/*.{ts,tsx}',
'src/pages/**/*.{ts,tsx}',
'src/routes/**/*.{ts,tsx}',
'src/services/**/*.{ts,tsx}',
'src/store/**/*.{ts,tsx}',
'src/styles/**/*.{ts,tsx}',
'src/utils/**/*.{ts,tsx}',
'src/App.tsx',
],
exclude: ['src/**/index.{ts,tsx}', 'src/**/*.test.{ts,tsx}'],
reporter: ['json-summary', 'text', 'html'],
},
},
})