Skip to content

Commit dcadf1f

Browse files
snaps
1 parent ba0d4cd commit dcadf1f

3 files changed

Lines changed: 3 additions & 18 deletions

File tree

  • packages/cli/snap-tests-global

packages/cli/snap-tests-global/cli-helper-message/snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Tools:
7171

7272
Environment:
7373
Package manager Not found
74-
Node.js v<semver> (default)
74+
Node.js v<semver>
7575

7676
> vp install -h # show install help message
7777
VITE+ - The Unified Toolchain for the Web

packages/cli/snap-tests-global/command-staged-with-config/snap.txt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,9 @@
2121

2222
> git add -A && git commit -m 'second'
2323
> printf 'eval("code");\n' > src/fail.js && git add src/fail.js
24-
[1]> vp staged # should fail when staged .js file has lint errors
25-
[STARTED] Backing up original state...
26-
[COMPLETED] Backed up original state in git stash (<hash>)
27-
[STARTED] Running tasks for staged files...
28-
[STARTED] Config object — 1 file
29-
[STARTED] *.ts — 0 files
30-
[STARTED] *.js — 1 file
31-
[SKIPPED] *.ts — no files
32-
[STARTED] vp lint
24+
[1]> vp staged > /dev/null 2>&1 # should fail when staged .js file has lint errors
3325
[FAILED] vp lint [FAILED]
3426
[FAILED] vp lint [FAILED]
35-
[COMPLETED] Running tasks for staged files...
36-
[STARTED] Applying modifications from tasks...
37-
[SKIPPED] Skipped because of errors from tasks.
38-
[STARTED] Reverting to original state because of errors...
39-
[COMPLETED] Reverting to original state because of errors...
40-
[STARTED] Cleaning up temporary files...
41-
[COMPLETED] Cleaning up temporary files...
4227

4328
✖ vp lint:
4429
VITE+ - The Unified Toolchain for the Web

packages/cli/snap-tests-global/command-version-no-side-effects/snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Tools:
1717

1818
Environment:
1919
Package manager Not found
20-
Node.js v<semver> (default)
20+
Node.js v<semver>
2121

2222
> test -f .node-version && echo 'FAIL: .node-version was created' || echo 'OK: no .node-version created'
2323
OK: no .node-version created

0 commit comments

Comments
 (0)