File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ /// <reference types="vitest" />
2
+ import { defineConfig } from 'vite'
3
+ import react from '@vitejs/plugin-react'
4
+ import path from 'path'
5
+
6
+ export default defineConfig ( {
7
+ plugins : [ react ( ) ] ,
8
+ test : {
9
+ globals : true ,
10
+ environment : 'happy-dom' ,
11
+ setupFiles : [ './src/test/setup.ts' ] ,
12
+ css : true ,
13
+ // Include coverage configuration
14
+ coverage : {
15
+ provider : 'v8' ,
16
+ reporter : [ 'text' , 'json' , 'html' ] ,
17
+ exclude : [
18
+ 'node_modules/' ,
19
+ 'src/test/' ,
20
+ '**/*.d.ts' ,
21
+ '**/*.config.*' ,
22
+ 'src/vite-env.d.ts'
23
+ ]
24
+ } ,
25
+ // Mock WebAssembly for tests
26
+ pool : 'forks' ,
27
+ poolOptions : {
28
+ forks : {
29
+ singleFork : true
30
+ }
31
+ }
32
+ } ,
33
+ resolve : {
34
+ alias : {
35
+ '@' : path . resolve ( __dirname , './src' )
36
+ }
37
+ }
38
+ } )
You can’t perform that action at this time.
0 commit comments