Skip to content

Commit

Permalink
move to prod test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 26, 2024
1 parent ef61ba8 commit e310328
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 40 deletions.
31 changes: 0 additions & 31 deletions test/e2e/app-dir/metadata-revalidate/metadata-revalidate.test.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { nextTestSetup } from 'e2e-utils'

describe('app-dir - metadata-revalidate', () => {
const { next } = nextTestSetup({
files: __dirname,
})

it('should contain the routes in prerender manifest', async () => {
const manifestContent = await next.readFile('.next/prerender-manifest.json')
const prerenderManifest = JSON.parse(manifestContent)

expect(
prerenderManifest.routes['/revalidate/og/opengraph-image']
.initialRevalidateSeconds
).toBe(5)
expect(
prerenderManifest.routes['/manifest.webmanifest'].initialRevalidateSeconds
).toBe(5)
expect(
prerenderManifest.routes['/robots.txt'].initialRevalidateSeconds
).toBe(5)
expect(
prerenderManifest.routes['/sitemap.xml'].initialRevalidateSeconds
).toBe(5)
})
})
18 changes: 9 additions & 9 deletions test/turbopack-build-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2191,15 +2191,6 @@
"flakey": [],
"runtimeError": false
},
"test/e2e/app-dir/metadata-revalidate/metadata-revalidate.test.ts": {
"passed": [],
"failed": [
"app-dir - metadata-revalidate should contain the routes in prerender manifest"
],
"pending": [],
"flakey": [],
"runtimeError": false
},
"test/e2e/app-dir/metadata-warnings/index.test.ts": {
"passed": [
"app dir - metadata missing metadataBase should not warn for viewport properties during manually merging metadata",
Expand Down Expand Up @@ -16309,6 +16300,15 @@
"flakey": [],
"runtimeError": false
},
"test/production/app-dir/metadata-revalidate/metadata-revalidate.test.ts": {
"passed": [],
"failed": [
"app-dir - metadata-revalidate should contain the routes in prerender manifest"
],
"pending": [],
"flakey": [],
"runtimeError": false
},
"test/production/middleware-typescript/test/index.test.ts": {
"passed": ["middleware-typescript should have built and started"],
"failed": [],
Expand Down

0 comments on commit e310328

Please sign in to comment.