[tests] Run dev e2e against same cli version (#8274)

The dev integration tests compare `vc dev` with a real deployment to make sure the results are the same. This PR ensures the deployment uses the same version of Vercel CLI as the local `vc dev` instance.

Co-authored-by: Sean Massa <EndangeredMassa@gmail.com>
This commit is contained in:
Steven
2022-07-29 13:19:36 -04:00
committed by GitHub
parent 88d98f7497
commit ab3fb25790
4 changed files with 25 additions and 27 deletions

View File

@@ -347,6 +347,9 @@ function testFixtureStdio(
? ['--scope', process.env.VERCEL_TEAM_ID]
: []),
'deploy',
...(process.env.VERCEL_CLI_VERSION
? ['--build-env', `VERCEL_CLI_VERSION=${process.env.VERCEL_CLI_VERSION}`]
: []),
'--public',
'--debug',
],