Unverified Commit ee84a02b authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Turbopack Build: Fix edge-config-validation test (#80847)

## What?

This test is correct but in Turbopack we correctly leave out `/` since
middleware is not a route by itself.
parent 6aa630c6
...@@ -25,7 +25,7 @@ describe('Edge config validations', () => { ...@@ -25,7 +25,7 @@ describe('Edge config validations', () => {
const res = await next.build() const res = await next.build()
expect(res.exitCode).toBe(1) expect(res.exitCode).toBe(1)
expect(res.cliOutput).toContain( expect(res.cliOutput).toContain(
'/middleware contains invalid middleware config: Expected string, received boolean at "unstable_allowDynamic", or Expected array, received boolean at "unstable_allowDynamic"' 'middleware contains invalid middleware config: Expected string, received boolean at "unstable_allowDynamic", or Expected array, received boolean at "unstable_allowDynamic"'
) )
}) })
}) })
...@@ -19040,10 +19040,10 @@ ...@@ -19040,10 +19040,10 @@
"runtimeError": false "runtimeError": false
}, },
"test/production/edge-config-validations/index.test.ts": { "test/production/edge-config-validations/index.test.ts": {
"passed": [], "passed": [
"failed": [
"Edge config validations fails to build when unstable_allowDynamic is not a string" "Edge config validations fails to build when unstable_allowDynamic is not a string"
], ],
"failed": [],
"pending": [], "pending": [],
"flakey": [], "flakey": [],
"runtimeError": false "runtimeError": false
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