Skip to content

Commit 16190d6

Browse files
committed
run nextjs-15 in turbo?
1 parent 61360f0 commit 16190d6

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"clean": "npx rimraf node_modules pnpm-lock.yaml",
88
"test:prod": "TEST_ENV=production playwright test",
99
"test:dev": "TEST_ENV=development playwright test",
10+
"test:dev-turbopack": "TEST_ENV=dev-turbopack playwright test",
1011
"test:build": "pnpm install && pnpm build",
1112
"test:build-canary": "pnpm install && pnpm add next@canary && pnpm add react@beta && pnpm add react-dom@beta && pnpm build",
1213
"//": "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.",
1314
"test:build-latest": "pnpm install && pnpm add [email protected] && pnpm add [email protected] && pnpm add [email protected] && pnpm build",
14-
"test:assert": "pnpm test:prod && pnpm test:dev"
15+
"test:assert": "pnpm test:dev-turbopack"
1516
},
1617
"dependencies": {
1718
"@sentry/nextjs": "latest || *",

dev-packages/e2e-tests/test-applications/nextjs-15/playwright.config.mjs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,24 @@ if (!testEnv) {
55
throw new Error('No test env defined');
66
}
77

8+
const getStartCommand = () => {
9+
if (testEnv === 'dev-turbopack') {
10+
return 'pnpm next dev -p 3030 --turbopack';
11+
}
12+
13+
if (testEnv === 'development') {
14+
return 'pnpm next dev -p 3030';
15+
}
16+
17+
if (testEnv === 'production') {
18+
return 'pnpm next start -p 3030';
19+
}
20+
21+
throw new Error(`Unknown test env: ${testEnv}`);
22+
};
23+
824
const config = getPlaywrightConfig({
9-
startCommand: testEnv === 'development' ? 'pnpm next dev -p 3030' : 'pnpm next start -p 3030',
25+
startCommand: getStartCommand(),
1026
port: 3030,
1127
});
1228

0 commit comments

Comments
 (0)