File tree Expand file tree Collapse file tree
migration-eslint-lintstagedrc
migration-existing-lint-staged-config
snap-tests/command-init-inline-config-existing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ jobs:
435435 - name : Run CLI snapshot tests
436436 run : |
437437 RUST_BACKTRACE=1 pnpm test
438- if ! git diff --exit-code ; then
438+ if ! git diff --quiet ; then
439439 echo "::error::Snapshot diff detected. Run 'pnpm -F vite-plus snap-test' locally and commit the updated snap.txt files."
440440 git diff --stat
441441 git diff
@@ -690,7 +690,7 @@ jobs:
690690 # Run snap tests
691691 git config --global --add safe.directory /workspace
692692 RUST_BACKTRACE=1 pnpm test
693- if ! git diff --exit-code ; then
693+ if ! git diff --quiet ; then
694694 echo '::error::Snapshot diff detected. Run pnpm -F vite-plus snap-test locally and commit the updated snap.txt files.'
695695 git diff --stat
696696 git diff
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ VITE+ - The Unified Toolchain for the Web
2727}
2828
2929> test ! -f .lintstagedrc.json # check lintstagedrc.json is removed
30-
3130> cat vite.config.ts # check oxlint config merged into vite.config.ts
3231import { defineConfig } from 'vite-plus';
3332
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ VITE+ - The Unified Toolchain for the Web
2727}
2828
2929> test ! -f .lintstagedrc.json # check lintstagedrc.json (should be deleted after inlining to vite.config.ts)
30-
3130> cat vite.config.ts # check staged config migrated to vite.config.ts
3231import { defineConfig } from 'vite-plus';
3332
Original file line number Diff line number Diff line change 22Skipped initialization: 'lint' already exists in 'vite.config.ts'.
33
44> test ! -f .oxlintrc.json # check .oxlintrc.json is not created
5-
65> vp fmt --init
76Skipped initialization: 'fmt' already exists in 'vite.config.ts'.
87
9- > test ! -f .oxfmtrc.json # check .oxfmtrc.json is not created
8+ > test ! -f .oxfmtrc.json # check .oxfmtrc.json is not created
You can’t perform that action at this time.
0 commit comments