File tree Expand file tree Collapse file tree
packages/cli/snap-tests-global
command-staged-with-config
command-version-no-side-effects Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171
7272Environment:
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
7777VITE+ - The Unified Toolchain for the Web
Original file line number Diff line number Diff line change 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:
4429VITE+ - The Unified Toolchain for the Web
Original file line number Diff line number Diff line change 1717
1818Environment:
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'
2323OK: no .node-version created
You can’t perform that action at this time.
0 commit comments