Skip to content

Commit 3b04938

Browse files
authored
test(nextjs): Update next 15 tests (#17919)
- Removes canary testing for v15, as [v16 beta](https://github.com/vercel/next.js/releases/tag/v16.0.0-beta.0) was released - Removes experimental `ppr` testing for v15 as this will not be marked as stable in v15. Will move these tests to v16 under the new name `cacheComponents` instead - Updates the basepath test to run on next@^15
1 parent 7fc2858 commit 3b04938

File tree

5 files changed

+9
-58
lines changed

5 files changed

+9
-58
lines changed

dev-packages/e2e-tests/test-applications/nextjs-15-basepath/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"@types/node": "^18.19.1",
1616
"@types/react": "18.0.26",
1717
"@types/react-dom": "18.0.9",
18-
"next": "15.4.2-canary.1",
19-
"react": "beta",
20-
"react-dom": "beta",
18+
"next": "^15",
19+
"react": "latest",
20+
"react-dom": "latest",
2121
"typescript": "~5.0.0"
2222
},
2323
"devDependencies": {

dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx

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

dev-packages/e2e-tests/test-applications/nextjs-15/next.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
const { withSentryConfig } = require('@sentry/nextjs');
22

33
/** @type {import('next').NextConfig} */
4-
const nextConfig = {
5-
experimental: {
6-
ppr: true,
7-
},
8-
};
4+
const nextConfig = {};
95

106
module.exports = withSentryConfig(nextConfig, {
117
silent: true,

dev-packages/e2e-tests/test-applications/nextjs-15/package.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
"test:dev": "TEST_ENV=development playwright test",
1111
"test:dev-turbo": "TEST_ENV=dev-turbopack playwright test",
1212
"test:build": "pnpm install && pnpm build",
13-
"test:build-canary": "pnpm install && pnpm add next@canary && pnpm add react@beta && pnpm add react-dom@beta && pnpm build",
14-
"//": "15.0.0-canary.194 is the canary release attached to Next.js RC 1. We need to use the canary version instead of the RC because PPR will not work without. The specific react version is also attached to RC 1.",
15-
"test:build-latest": "pnpm install && pnpm add next@15.0.0-canary.194 && pnpm add react@19.0.0-rc-cd22717c-20241013 && pnpm add react-dom@19.0.0-rc-cd22717c-20241013 && pnpm build",
16-
"test:build-turbo": "pnpm install && pnpm add next@15.4.2-canary.1 && next build --turbopack",
13+
"test:build-latest": "pnpm install && pnpm add next@15 && pnpm build",
14+
"test:build-turbo": "pnpm install && next build --turbopack",
1715
"test:assert": "pnpm test:prod && pnpm test:dev"
1816
},
1917
"dependencies": {
@@ -22,9 +20,9 @@
2220
"@types/react": "18.0.26",
2321
"@types/react-dom": "18.0.9",
2422
"ai": "^3.0.0",
25-
"next": "15.4.2-canary.1",
26-
"react": "beta",
27-
"react-dom": "beta",
23+
"next": "15.5.4",
24+
"react": "latest",
25+
"react-dom": "latest",
2826
"typescript": "~5.0.0",
2927
"zod": "^3.22.4"
3028
},
@@ -37,10 +35,6 @@
3735
},
3836
"sentryTest": {
3937
"optionalVariants": [
40-
{
41-
"build-command": "pnpm test:build-canary",
42-
"label": "nextjs-15 (canary)"
43-
},
4438
{
4539
"build-command": "pnpm test:build-latest",
4640
"label": "nextjs-15 (latest)"

dev-packages/e2e-tests/test-applications/nextjs-15/tests/ppr-error.test.ts

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

0 commit comments

Comments
 (0)