-
Notifications
You must be signed in to change notification settings - Fork 91
test: adjust tests for next@16 #3169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ee4f245
d465b7a
e63c571
5cedb8b
18f7ee7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -234,7 +234,7 @@ test('requesting a non existing page route that needs to be fetched from the blo | |
// would not ... and then https://github.com/vercel/next.js/pull/69802 changed it back again | ||
// (14.2.10 and canary.147) | ||
const shouldHavePrivateDirective = nextVersionSatisfies( | ||
'<14.2.4 || >=14.2.10 <15.0.0-canary.24 || ^15.0.0-canary.147', | ||
'<14.2.4 || >=14.2.10 <15.0.0-canary.24 || >=15.0.0-canary.147', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated to have v16 fall into version range |
||
) | ||
|
||
expect(headers['debug-netlify-cdn-cache-control']).toBe( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
const { satisfies } = require('semver') | ||
|
||
// https://github.com/vercel/next.js/pull/84280 | ||
const pprConfigHardDeprecated = satisfies( | ||
require('next/package.json').version, | ||
'>=15.6.0-canary.54', | ||
{ | ||
includePrerelease: true, | ||
}, | ||
) | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
output: 'standalone', | ||
eslint: { | ||
ignoreDuringBuilds: true, | ||
}, | ||
experimental: { | ||
ppr: true, | ||
}, | ||
experimental: pprConfigHardDeprecated | ||
? { | ||
cacheComponents: true, | ||
} | ||
: { | ||
ppr: true, | ||
}, | ||
Comment on lines
+18
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This does introduce also introduce some changes to some behaviors and ppr test was adjusted for it as well |
||
outputFileTracingRoot: __dirname, | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding way to run just
latest
andcanary
variants without v13 and v14 to save CI time while working on adjustments for Next@16