diff --git a/test/integration/handle-non-page-in-pages/test/index.test.js b/test/integration/handle-non-page-in-pages/test/index.test.js index 10cb24fc467b..b18c13ea451a 100644 --- a/test/integration/handle-non-page-in-pages/test/index.test.js +++ b/test/integration/handle-non-page-in-pages/test/index.test.js @@ -11,7 +11,7 @@ describe('Handle non-page in pages when target: serverless', () => { const { stderr } = await nextBuild(appDir, [], { stderr: true }) expect(stderr).toMatch( - /webpack build failed: found page without a React Component as default export in/ + /found page without a React Component as default export in/ ) expect(stderr).toMatch(/pages\/invalid/) })