Skip to content

Commit a255619

Browse files
refactor(test): switch tests to use pnpm in more places (vercel#63196)
1 parent d95bc96 commit a255619

File tree

15 files changed

+23
-23
lines changed

15 files changed

+23
-23
lines changed

test/development/acceptance-app/ReactRefreshLogBox.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
164164
})
165165

166166
// TODO: investigate why this fails when running outside of the Next.js
167-
// monorepo e.g. fails when using yarn create next-app
167+
// monorepo e.g. fails when using pnpm create next-app
168168
// https://github.com/vercel/next.js/pull/23203
169169
test.skip('internal package errors', async () => {
170170
const { session, cleanup } = await sandbox(next)

test/development/acceptance/ReactRefreshLogBox.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => {
151151
})
152152

153153
// TODO: investigate why this fails when running outside of the Next.js
154-
// monorepo e.g. fails when using yarn create next-app
154+
// monorepo e.g. fails when using pnpm create next-app
155155
// https://github.com/vercel/next.js/pull/23203
156156
test.skip('internal package errors', async () => {
157157
const { session, cleanup } = await sandbox(next)

test/development/experimental-https-server/https-server.generated-key.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ createNextDescribe(
66
'experimental-https-server (generated certificate)',
77
{
88
files: __dirname,
9-
startCommand: `yarn next ${
9+
startCommand: `pnpm next ${
1010
shouldRunTurboDevTest() ? 'dev --turbo' : 'dev'
1111
} --experimental-https`,
1212
skipStart: !process.env.CI,

test/development/experimental-https-server/https-server.provided-key.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ createNextDescribe(
66
'experimental-https-server (provided certificate)',
77
{
88
files: __dirname,
9-
startCommand: `yarn next ${
9+
startCommand: `pnpm next ${
1010
shouldRunTurboDevTest() ? 'dev --turbo' : 'dev'
1111
} --experimental-https --experimental-https-key ./certificates/localhost-key.pem --experimental-https-cert ./certificates/localhost.pem`,
1212
},

test/e2e/app-dir/next-image/next-image-https.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ createNextDescribe(
55
{
66
files: __dirname,
77
skipDeployment: true,
8-
startCommand: `yarn next dev --experimental-https`,
8+
startCommand: `pnpm next dev --experimental-https`,
99
},
1010
({ next }) => {
1111
if (!process.env.CI) {

test/e2e/multi-zone/multi-zone.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ createNextDescribe(
1212
packageJson: {
1313
scripts: {
1414
dev: 'node server.js',
15-
build: 'yarn next build apps/host && yarn next build apps/guest',
15+
build: 'next build apps/host && next build apps/guest',
1616
start: 'NODE_ENV=production node server.js',
1717
'post-build': 'echo done',
1818
},

test/e2e/testmode/testmode.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ createNextDescribe(
88
skipDeployment: true,
99
dependencies: require('./package.json').dependencies,
1010
startCommand: (global as any).isNextDev
11-
? 'yarn next dev --experimental-test-proxy'
12-
: 'yarn next start --experimental-test-proxy',
11+
? 'pnpm next dev --experimental-test-proxy'
12+
: 'pnpm next start --experimental-test-proxy',
1313
},
1414
({ next, isNextDev }) => {
1515
let proxyServer: Awaited<ReturnType<typeof createProxyServer>>

test/integration/react-18/app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"scripts": {
3-
"dev": "yarn next dev",
4-
"build": "yarn next build",
5-
"start": "yarn next start"
3+
"dev": "next dev",
4+
"build": "next build",
5+
"start": "next start"
66
},
77
"dependencies": {
88
"react": "*",

test/integration/react-streaming/app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"private": true,
33
"scripts": {
4-
"dev": "yarn next dev",
5-
"build": "yarn next build",
6-
"start": "yarn next start"
4+
"dev": "next dev",
5+
"build": "next build",
6+
"start": "next start"
77
},
88
"dependencies": {
99
"moment": "*"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"private": true,
33
"scripts": {
4-
"dev": "yarn next dev",
5-
"build": "yarn next build",
6-
"start": "yarn next start"
4+
"dev": "next dev",
5+
"build": "next build",
6+
"start": "next start"
77
}
88
}

0 commit comments

Comments
 (0)