@@ -8,6 +8,9 @@ import type { Vitest } from 'vitest/node'
88
99type VitestCliOptions = Parameters < typeof createVitest > [ 1 ]
1010
11+ // Increase timeout for CI environments (especially Windows) where Nuxt build can be slow
12+ const TEST_TIMEOUT = process . env . CI ? 60_000 : 10_000
13+
1114describe ( 'resolve config' , ( ) => {
1215 describe ( 'basic' , async ( ) => {
1316 const expected = {
@@ -21,13 +24,13 @@ describe('resolve config', () => {
2124
2225 it ( 'all' , async ( ) => {
2326 expect ( await globTestSpecifications ( '../fixtures/basic' ) ) . toEqual ( expected )
24- } )
27+ } , TEST_TIMEOUT )
2528
2629 it ( 'spcific root' , async ( ) => {
2730 expect ( await globTestSpecifications ( './' , {
2831 root : '../fixtures/basic' ,
2932 } ) ) . toEqual ( expected )
30- } )
33+ } , TEST_TIMEOUT )
3134 } )
3235
3336 describe ( 'project' , async ( ) => {
@@ -42,19 +45,19 @@ describe('resolve config', () => {
4245
4346 it ( 'all' , async ( ) => {
4447 expect ( await globTestSpecifications ( '../fixtures/project' ) ) . toEqual ( expected )
45- } )
48+ } , TEST_TIMEOUT )
4649
4750 it ( 'only spcific project' , async ( ) => {
4851 expect ( await globTestSpecifications ( '../fixtures/project' , {
4952 project : 'nuxt' ,
5053 } ) ) . toEqual ( { nuxt : expected . nuxt } )
51- } )
54+ } , TEST_TIMEOUT )
5255
5356 it ( 'spcific root' , async ( ) => {
5457 expect ( await globTestSpecifications ( './' , {
5558 root : '../fixtures/project' ,
5659 } ) ) . toEqual ( expected )
57- } )
60+ } , TEST_TIMEOUT )
5861 } )
5962
6063 describe ( 'override' , ( ) => {
@@ -75,7 +78,7 @@ describe('resolve config', () => {
7578
7679 it ( 'all' , async ( ) => {
7780 expect ( await globTestSpecifications ( '../fixtures/override' ) ) . toEqual ( expected )
78- } )
81+ } , TEST_TIMEOUT )
7982
8083 it ( 'only spcific project' , async ( ) => {
8184 expect ( await globTestSpecifications ( '../fixtures/override' , {
@@ -84,13 +87,13 @@ describe('resolve config', () => {
8487 nuxt1 : expected . nuxt1 ,
8588 nuxt2 : expected . nuxt2 ,
8689 } )
87- } )
90+ } , TEST_TIMEOUT )
8891
8992 it ( 'spcific root' , async ( ) => {
9093 expect ( await globTestSpecifications ( './' , {
9194 root : '../fixtures/override' ,
9295 } ) ) . toEqual ( expected )
93- } )
96+ } , TEST_TIMEOUT )
9497 } )
9598} )
9699
0 commit comments