Skip to content

Commit fac5db3

Browse files
committed
fixup! test: experimental.ppr deprecated
1 parent b14cbe4 commit fac5db3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/integration/simple-app.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
} from '../utils/helpers.js'
3737
import {
3838
hasDefaultTurbopackBuilds,
39+
isExperimentalPPRHardDeprecated,
3940
nextVersionSatisfies,
4041
shouldHaveAppRouterGlobalErrorInPrerenderManifest,
4142
shouldHaveAppRouterNotFoundInPrerenderManifest,
@@ -403,7 +404,7 @@ test.skipIf(process.env.NEXT_VERSION !== 'canary')<FixtureTestContext>(
403404
'/1',
404405
'/2',
405406
'/404',
406-
'/[dynamic]',
407+
isExperimentalPPRHardDeprecated() ? undefined : '/[dynamic]',
407408
shouldHaveAppRouterGlobalErrorInPrerenderManifest() ? '/_global-error' : undefined,
408409
shouldHaveAppRouterNotFoundInPrerenderManifest() ? '/_not-found' : undefined,
409410
'/index',

tests/utils/next-version-helpers.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export function shouldHaveSlashIndexTagForIndexPage() {
5858
return nextVersionSatisfies('>=v15.6.0-canary.50')
5959
}
6060

61+
export function isExperimentalPPRHardDeprecated() {
62+
// https://github.com/vercel/next.js/pull/84280
63+
return nextVersionSatisfies('>=15.6.0-canary.54')
64+
}
65+
6166
/**
6267
* Check if current next version requires React 19
6368
* @param {string} version Next version

0 commit comments

Comments
 (0)