Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a2556196
Unverified
Commit
a2556196
authored
Mar 20, 2024
by
Balázs Orbán
Committed by
GitHub
Mar 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(test): switch tests to use `pnpm` in more places (#63196)
parent
d95bc960
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
23 additions
and
23 deletions
+23
-23
ReactRefreshLogBox.test.ts
test/development/acceptance-app/ReactRefreshLogBox.test.ts
+1
-1
ReactRefreshLogBox.test.ts
test/development/acceptance/ReactRefreshLogBox.test.ts
+1
-1
https-server.generated-key.test.ts
...erimental-https-server/https-server.generated-key.test.ts
+1
-1
https-server.provided-key.test.ts
...perimental-https-server/https-server.provided-key.test.ts
+1
-1
next-image-https.test.ts
test/e2e/app-dir/next-image/next-image-https.test.ts
+1
-1
multi-zone.test.ts
test/e2e/multi-zone/multi-zone.test.ts
+1
-1
testmode.test.ts
test/e2e/testmode/testmode.test.ts
+2
-2
package.json
test/integration/react-18/app/package.json
+3
-3
package.json
test/integration/react-streaming/app/package.json
+3
-3
package.json
...on/react-streaming/unsupported-native-module/package.json
+3
-3
index.test.js
...ration/relay-graphql-swc-multi-project/test/index.test.js
+1
-1
index.test.js
...ation/relay-graphql-swc-single-project/test/index.test.js
+1
-1
e2e-utils.ts
test/lib/e2e-utils.ts
+1
-1
next-dev.ts
test/lib/next-modes/next-dev.ts
+1
-1
next-start.ts
test/lib/next-modes/next-start.ts
+2
-2
No files found.
test/development/acceptance-app/ReactRefreshLogBox.test.ts
View file @
a2556196
...
...
@@ -164,7 +164,7 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
})
// TODO: investigate why this fails when running outside of the Next.js
// monorepo e.g. fails when using
yarn
create next-app
// monorepo e.g. fails when using
pnpm
create next-app
// https://github.com/vercel/next.js/pull/23203
test
.
skip
(
'internal package errors'
,
async
()
=>
{
const
{
session
,
cleanup
}
=
await
sandbox
(
next
)
...
...
test/development/acceptance/ReactRefreshLogBox.test.ts
View file @
a2556196
...
...
@@ -151,7 +151,7 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => {
})
// TODO: investigate why this fails when running outside of the Next.js
// monorepo e.g. fails when using
yarn
create next-app
// monorepo e.g. fails when using
pnpm
create next-app
// https://github.com/vercel/next.js/pull/23203
test
.
skip
(
'internal package errors'
,
async
()
=>
{
const
{
session
,
cleanup
}
=
await
sandbox
(
next
)
...
...
test/development/experimental-https-server/https-server.generated-key.test.ts
View file @
a2556196
...
...
@@ -6,7 +6,7 @@ createNextDescribe(
'experimental-https-server (generated certificate)'
,
{
files
:
__dirname
,
startCommand
:
`
yarn
next
${
startCommand
:
`
pnpm
next
${
shouldRunTurboDevTest
()
?
'dev --turbo'
:
'dev'
}
--experimental-https`
,
skipStart
:
!
process
.
env
.
CI
,
...
...
test/development/experimental-https-server/https-server.provided-key.test.ts
View file @
a2556196
...
...
@@ -6,7 +6,7 @@ createNextDescribe(
'experimental-https-server (provided certificate)'
,
{
files
:
__dirname
,
startCommand
:
`
yarn
next
${
startCommand
:
`
pnpm
next
${
shouldRunTurboDevTest
()
?
'dev --turbo'
:
'dev'
}
--experimental-https --experimental-https-key ./certificates/localhost-key.pem --experimental-https-cert ./certificates/localhost.pem`
,
},
...
...
test/e2e/app-dir/next-image/next-image-https.test.ts
View file @
a2556196
...
...
@@ -5,7 +5,7 @@ createNextDescribe(
{
files
:
__dirname
,
skipDeployment
:
true
,
startCommand
:
`
yarn
next dev --experimental-https`
,
startCommand
:
`
pnpm
next dev --experimental-https`
,
},
({
next
})
=>
{
if
(
!
process
.
env
.
CI
)
{
...
...
test/e2e/multi-zone/multi-zone.test.ts
View file @
a2556196
...
...
@@ -12,7 +12,7 @@ createNextDescribe(
packageJson
:
{
scripts
:
{
dev
:
'node server.js'
,
build
:
'
yarn next build apps/host && yarn
next build apps/guest'
,
build
:
'
next build apps/host &&
next build apps/guest'
,
start
:
'NODE_ENV=production node server.js'
,
'post-build'
:
'echo done'
,
},
...
...
test/e2e/testmode/testmode.test.ts
View file @
a2556196
...
...
@@ -8,8 +8,8 @@ createNextDescribe(
skipDeployment
:
true
,
dependencies
:
require
(
'./package.json'
).
dependencies
,
startCommand
:
(
global
as
any
).
isNextDev
?
'
yarn
next dev --experimental-test-proxy'
:
'
yarn
next start --experimental-test-proxy'
,
?
'
pnpm
next dev --experimental-test-proxy'
:
'
pnpm
next start --experimental-test-proxy'
,
},
({
next
,
isNextDev
})
=>
{
let
proxyServer
:
Awaited
<
ReturnType
<
typeof
createProxyServer
>>
...
...
test/integration/react-18/app/package.json
View file @
a2556196
{
"scripts"
:
{
"dev"
:
"
yarn
next dev"
,
"build"
:
"
yarn
next build"
,
"start"
:
"
yarn
next start"
"dev"
:
"next dev"
,
"build"
:
"next build"
,
"start"
:
"next start"
},
"dependencies"
:
{
"react"
:
"*"
,
...
...
test/integration/react-streaming/app/package.json
View file @
a2556196
{
"private"
:
true
,
"scripts"
:
{
"dev"
:
"
yarn
next dev"
,
"build"
:
"
yarn
next build"
,
"start"
:
"
yarn
next start"
"dev"
:
"next dev"
,
"build"
:
"next build"
,
"start"
:
"next start"
},
"dependencies"
:
{
"moment"
:
"*"
...
...
test/integration/react-streaming/unsupported-native-module/package.json
View file @
a2556196
{
"private"
:
true
,
"scripts"
:
{
"dev"
:
"
yarn
next dev"
,
"build"
:
"
yarn
next build"
,
"start"
:
"
yarn
next start"
"dev"
:
"next dev"
,
"build"
:
"next build"
,
"start"
:
"next start"
}
}
test/integration/relay-graphql-swc-multi-project/test/index.test.js
View file @
a2556196
...
...
@@ -26,7 +26,7 @@ const runTests = (project) => {
const
runRelayCompiler
=
()
=>
{
// Relay expects the current directory to contain a relay.json
// This ensures the CWD is the one with relay.json since running
// the relay-compiler through
yarn
would make the root of the repo the CWD.
// the relay-compiler through
pnpm
would make the root of the repo the CWD.
execSync
(
'../../../node_modules/relay-compiler/cli.js'
,
{
cwd
:
'./test/integration/relay-graphql-swc-multi-project'
,
})
...
...
test/integration/relay-graphql-swc-single-project/test/index.test.js
View file @
a2556196
...
...
@@ -24,7 +24,7 @@ const runTests = () => {
const
runRelayCompiler
=
()
=>
{
// Relay expects the current directory to contain a relay.json
// This ensures the CWD is the one with relay.json since running
// the relay-compiler through
yarn
would make the root of the repo the CWD.
// the relay-compiler through
pnpm
would make the root of the repo the CWD.
execSync
(
'../../../node_modules/relay-compiler/cli.js'
,
{
cwd
:
'./test/integration/relay-graphql-swc-single-project'
,
})
...
...
test/lib/e2e-utils.ts
View file @
a2556196
...
...
@@ -10,7 +10,7 @@ import { shouldRunTurboDevTest } from './next-test-utils'
export
type
{
NextInstance
}
// increase timeout to account for
yarn
install time
// increase timeout to account for
pnpm
install time
// if either test runs for the --turbo or have a custom timeout, set reduced timeout instead.
// this is due to current --turbo test have a lot of tests fails with timeouts, ends up the whole
// test job exceeds the 6 hours limit.
...
...
test/lib/next-modes/next-dev.ts
View file @
a2556196
...
...
@@ -29,7 +29,7 @@ export class NextDevInstance extends NextInstance {
((
this
as
any
).
turbo
||
(
this
as
any
).
experimentalTurbo
)
let
startArgs
=
[
'
yarn
'
,
'
pnpm
'
,
'next'
,
useTurbo
?
getTurbopackFlag
()
:
undefined
,
useDirArg
&&
this
.
testDir
,
...
...
test/lib/next-modes/next-start.ts
View file @
a2556196
...
...
@@ -55,8 +55,8 @@ export class NextStartInstance extends NextInstance {
},
}
let
buildArgs
=
[
'
yarn
'
,
'next'
,
'build'
]
let
startArgs
=
[
'
yarn
'
,
'next'
,
'start'
]
let
buildArgs
=
[
'
pnpm
'
,
'next'
,
'build'
]
let
startArgs
=
[
'
pnpm
'
,
'next'
,
'start'
]
if
(
this
.
buildCommand
)
{
buildArgs
=
this
.
buildCommand
.
split
(
' '
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment