Skip to content

Commit ef60ba1

Browse files
committed
fix(snap): ignore unstable env setup output in incompatible node tests
1 parent 8861cc7 commit ef60ba1

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

packages/cli/snap-tests-global/runtime-with-incompatible-env-node/snap.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
> vp env use 20.0.0
2-
Installing Node.js v<semver>...
3-
Using Node.js v<semver> (resolved from <semver>)
4-
52
[1]> vp exec node --version
63
VITE+ - The Unified Toolchain for the Web
74

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"serial": true,
33
"ignoredPlatforms": ["win32"],
4-
"commands": ["vp env use 20.0.0", "vp exec node --version"],
4+
"commands": [{ "command": "vp env use 20.0.0", "ignoreOutput": true }, "vp exec node --version"],
55
"after": ["vp env use --unset"]
66
}

packages/cli/snap-tests-global/runtime-with-incompatible-global-node/snap.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
> vp env default 20.0.0
2-
VITE+ - The Unified Toolchain for the Web
3-
4-
✓ Default Node.js version set to <semver>
5-
62
[1]> vp migrate --yes
73
error: Node.js <semver> is incompatible with Vite+ CLI.
84
Required by Vite+: ^20.19.0 || >=22.12.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"serial": true,
33
"env": {},
4-
"commands": ["vp env default 20.0.0", "vp migrate --yes"],
4+
"commands": [{ "command": "vp env default 20.0.0", "ignoreOutput": true }, "vp migrate --yes"],
55
"after": ["vp env default lts"]
66
}

0 commit comments

Comments
 (0)