1- import { defineConfig } from ' vitest/config'
2- import { resolve } from ' path'
1+ import { defineConfig } from " vitest/config" ;
2+ import { resolve } from " path" ;
33
44export default defineConfig ( {
55 test : {
66 globals : true ,
7- environment : ' node' ,
7+ environment : " node" ,
88 coverage : {
9- provider : 'v8' ,
10- reporter : [ 'text' , 'html' , 'lcov' ] ,
11- include : [ 'lib/esm/**/*.js' ] ,
12- exclude : [ 'test/**' , 'dist/**' , 'coverage/**' , '**/*.d.ts' , 'lib/**/*.d.ts' , 'lib/axios' , '**/*/browser.js' ] ,
13- all : true ,
9+ provider : "v8" ,
10+ reporter : [ "text-summary" , "html" ] ,
11+ include : [ "lib/esm/**/*.js" ] ,
12+ exclude : [
13+ "test/**" ,
14+ "dist/**" ,
15+ "coverage/**" ,
16+ "**/*.d.ts" ,
17+ "lib/**/*.d.ts" ,
18+ "lib/axios" ,
19+ "**/*/browser.js" ,
20+ ] ,
1421 } ,
1522 testTimeout : 120000 , // 2 minutes timeout for e2e tests (same as original Mocha config)
1623 hookTimeout : 120000 , // 2 minutes timeout for hooks (beforeAll, afterAll, etc.)
1724 // Include only e2e tests
18- include : [ ' test/e2e/src/**/*.test.ts' ] ,
19- exclude : [ ' **/browser.test.ts' ] ,
25+ include : [ " test/e2e/src/**/*.test.ts" ] ,
26+ exclude : [ " **/browser.test.ts" ] ,
2027 // Run tests in sequence to avoid conflicts with shared resources
21- pool : ' forks' ,
28+ pool : " forks" ,
2229 poolOptions : {
2330 forks : {
2431 singleFork : true ,
@@ -27,17 +34,17 @@ export default defineConfig({
2734 } ,
2835 resolve : {
2936 alias : {
30- '@' : resolve ( __dirname , ' ../src' ) ,
37+ "@" : resolve ( __dirname , " ../src" ) ,
3138 } ,
32- extensions : [ ' .ts' , ' .tsx' , ' .js' , ' .jsx' , ' .json' ] ,
39+ extensions : [ " .ts" , " .tsx" , " .js" , " .jsx" , " .json" ] ,
3340 } ,
3441 esbuild : {
35- target : ' node20' ,
42+ target : " node20" ,
3643 } ,
3744 optimizeDeps : {
38- include : [ ' axios' ] ,
45+ include : [ " axios" ] ,
3946 } ,
4047 define : {
4148 __PACKAGE_VERSION__ : JSON . stringify ( process . env . npm_package_version ) ,
4249 } ,
43- } )
50+ } ) ;
0 commit comments