Skip to content

Commit e310328

Browse files
committed
move to prod test
1 parent ef61ba8 commit e310328

File tree

7 files changed

+35
-40
lines changed

7 files changed

+35
-40
lines changed

test/e2e/app-dir/metadata-revalidate/metadata-revalidate.test.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

test/e2e/app-dir/metadata-revalidate/app/manifest.ts renamed to test/production/app-dir/metadata-revalidate/app/manifest.ts

File renamed without changes.

test/e2e/app-dir/metadata-revalidate/app/revalidate/og/opengraph-image.tsx renamed to test/production/app-dir/metadata-revalidate/app/revalidate/og/opengraph-image.tsx

File renamed without changes.

test/e2e/app-dir/metadata-revalidate/app/robots.ts renamed to test/production/app-dir/metadata-revalidate/app/robots.ts

File renamed without changes.

test/e2e/app-dir/metadata-revalidate/app/sitemap.ts renamed to test/production/app-dir/metadata-revalidate/app/sitemap.ts

File renamed without changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { nextTestSetup } from 'e2e-utils'
2+
3+
describe('app-dir - metadata-revalidate', () => {
4+
const { next } = nextTestSetup({
5+
files: __dirname,
6+
})
7+
8+
it('should contain the routes in prerender manifest', async () => {
9+
const manifestContent = await next.readFile('.next/prerender-manifest.json')
10+
const prerenderManifest = JSON.parse(manifestContent)
11+
12+
expect(
13+
prerenderManifest.routes['/revalidate/og/opengraph-image']
14+
.initialRevalidateSeconds
15+
).toBe(5)
16+
expect(
17+
prerenderManifest.routes['/manifest.webmanifest'].initialRevalidateSeconds
18+
).toBe(5)
19+
expect(
20+
prerenderManifest.routes['/robots.txt'].initialRevalidateSeconds
21+
).toBe(5)
22+
expect(
23+
prerenderManifest.routes['/sitemap.xml'].initialRevalidateSeconds
24+
).toBe(5)
25+
})
26+
})

test/turbopack-build-tests-manifest.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,15 +2191,6 @@
21912191
"flakey": [],
21922192
"runtimeError": false
21932193
},
2194-
"test/e2e/app-dir/metadata-revalidate/metadata-revalidate.test.ts": {
2195-
"passed": [],
2196-
"failed": [
2197-
"app-dir - metadata-revalidate should contain the routes in prerender manifest"
2198-
],
2199-
"pending": [],
2200-
"flakey": [],
2201-
"runtimeError": false
2202-
},
22032194
"test/e2e/app-dir/metadata-warnings/index.test.ts": {
22042195
"passed": [
22052196
"app dir - metadata missing metadataBase should not warn for viewport properties during manually merging metadata",
@@ -16309,6 +16300,15 @@
1630916300
"flakey": [],
1631016301
"runtimeError": false
1631116302
},
16303+
"test/production/app-dir/metadata-revalidate/metadata-revalidate.test.ts": {
16304+
"passed": [],
16305+
"failed": [
16306+
"app-dir - metadata-revalidate should contain the routes in prerender manifest"
16307+
],
16308+
"pending": [],
16309+
"flakey": [],
16310+
"runtimeError": false
16311+
},
1631216312
"test/production/middleware-typescript/test/index.test.ts": {
1631316313
"passed": ["middleware-typescript should have built and started"],
1631416314
"failed": [],

0 commit comments

Comments
 (0)