Unverified Commit beb222e8 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

tests: Use pnpm dlx to install latest CLI version (#90923)

Hopefully improve flakeyness
parent 75af3bbd
......@@ -237,9 +237,6 @@ const FILES = {
'.vercel/project.json': `{ "projectId": "prj_", "orgId": "team_", "settings": {} }`,
...FILES[test],
},
dependencies: {
vercel: 'latest',
},
packageJson: {
scripts: {
dev: 'next dev',
......@@ -247,7 +244,9 @@ const FILES = {
start: 'next start',
},
},
buildCommand: 'pnpm vercel build',
// We use NEXT_TEST_PREFER_OFFLINE, so just declaring `vercel: latest` as a dependency still
// doesn't force the latest version.
buildCommand: 'pnpm dlx vercel@latest build',
env:
mode === 'adapter'
? {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment