File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed
Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,21 @@ describe('build', () => {
1313 } )
1414
1515 bench ( 'initial dev server build in the basic test fixture' , async ( ) => {
16- const nuxt = await loadNuxt ( {
17- cwd : basicTestFixtureDir ,
18- ready : true ,
19- overrides : {
20- dev : true ,
21- buildDir : join ( basicTestFixtureDir , 'node_modules/build/.nuxt' ) ,
22- sourcemap : false ,
23- builder : {
24- bundle : ( ) => Promise . resolve ( ) ,
16+ await new Promise ( ( resolve ) => {
17+ loadNuxt ( {
18+ cwd : basicTestFixtureDir ,
19+ ready : true ,
20+ overrides : {
21+ dev : true ,
22+ buildDir : join ( basicTestFixtureDir , 'node_modules/build/.nuxt' ) ,
23+ sourcemap : false ,
24+ builder : {
25+ async bundle ( nuxt ) {
26+ resolve ( await nuxt . close ( ) )
27+ } ,
28+ } ,
2529 } ,
26- } ,
30+ } ) . then ( build )
2731 } )
28- await new Promise < void > ( ( resolve ) => {
29- nuxt . hook ( 'build:done' , ( ) => resolve ( ) )
30- build ( nuxt )
31- } )
32- await nuxt . close ( )
3332 } )
3433} )
You can’t perform that action at this time.
0 commit comments