Unverified Commit 5cd22fa8 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

test: stabilize page config error assertions

Co-authored-by: 's avatarLuke Sandberg <210140+lukesandberg@users.noreply.github.com>
parent e8ed1445
......@@ -24,8 +24,9 @@ describe('Page Config', () => {
if (isTurbopack) {
// Turbopack rejects the config in its own transform, and the build
// stops there. It never reads the value with the segment config schema.
expect(cliOutput).toContain('./pages/invalid/string-config.js')
expect(cliOutput).toContain(
"Next.js can't recognize the exported `config` field"
"Next.js can't recognize the exported `config` field in route. It needs to be a static object."
)
} else {
// Webpack reads the value with the segment config schema, and the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment