diff --git a/packages/vite/src/node/__tests__/build.spec.ts b/packages/vite/src/node/__tests__/build.spec.ts index 95618dd7ac5204..b576b6e8d14532 100644 --- a/packages/vite/src/node/__tests__/build.spec.ts +++ b/packages/vite/src/node/__tests__/build.spec.ts @@ -774,7 +774,7 @@ describe('onRollupLog', () => { logger: Logger, options?: Pick, ) => { - return (await build({ + await build({ root: resolve(__dirname, 'packages/build-project'), logLevel: 'info', build: { @@ -801,7 +801,7 @@ describe('onRollupLog', () => { }, }, ], - })) as RollupOutput + }) } const callOnRollupLog = async (