diff --git a/test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts b/test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts index 0a69749b2d122..3c144e42f29e5 100644 --- a/test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts +++ b/test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts @@ -1,7 +1,7 @@ import { nextTestSetup } from 'e2e-utils' describe('use-cache-metadata-route-handler', () => { - const { next, isNextStart } = nextTestSetup({ + const { next, isNextDev, isNextStart } = nextTestSetup({ files: __dirname, }) @@ -41,12 +41,12 @@ describe('use-cache-metadata-route-handler', () => { const body = await res.text() - if (isNextStart) { + if (isNextDev) { expect(body).toMatchInlineSnapshot(` " - https://acme.com?sentinel=buildtime + https://acme.com?sentinel=runtime " @@ -56,7 +56,7 @@ describe('use-cache-metadata-route-handler', () => { " - https://acme.com?sentinel=runtime + https://acme.com?sentinel=buildtime " @@ -71,12 +71,12 @@ describe('use-cache-metadata-route-handler', () => { const body = await res.text() - if (isNextStart) { + if (isNextDev) { expect(body).toMatchInlineSnapshot(` " - https://acme.com/1?sentinel=buildtime + https://acme.com/1?sentinel=runtime " @@ -86,7 +86,7 @@ describe('use-cache-metadata-route-handler', () => { " - https://acme.com/1?sentinel=runtime + https://acme.com/1?sentinel=buildtime " @@ -101,17 +101,17 @@ describe('use-cache-metadata-route-handler', () => { const body = await res.text() - if (isNextStart) { + if (isNextDev) { expect(body).toMatchInlineSnapshot(` - "User-Agent: * - Allow: /buildtime - - " - `) + "User-Agent: * + Allow: /runtime + + " + `) } else { expect(body).toMatchInlineSnapshot(` "User-Agent: * - Allow: /runtime + Allow: /buildtime " `) @@ -125,10 +125,10 @@ describe('use-cache-metadata-route-handler', () => { const body = await res.json() - if (isNextStart) { - expect(body).toEqual({ name: 'buildtime' }) - } else { + if (isNextDev) { expect(body).toEqual({ name: 'runtime' }) + } else { + expect(body).toEqual({ name: 'buildtime' }) } }) })