Skip to content

Commit 136ae2f

Browse files
committed
test(snapshots): commit the gitignored fixture stubs migrated cases need
`migration_husky_latest_dist_tag_v9_installed` reads the installed husky version from `node_modules/husky/package.json`, and `migration_upgrade_stale_local_pnpm` runs a `local-vite-plus/dist/bin.js` stub. Both files are `.gitignore`d (node_modules, dist), so the migrator copied them to disk but `git add -A` skipped them: CI's fresh checkout lacked them, and migrate warned "Could not determine husky version from 'latest'" instead of configuring hooks. Force-add both so CI has the same inputs as the recording.
1 parent 769eea2 commit 136ae2f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

  • crates/vite_cli_snapshots/tests/cli_snapshots/fixtures
    • migration_husky_latest_dist_tag_v9_installed/node_modules/husky
    • migration_upgrade_stale_local_pnpm/local-vite-plus/dist

crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/migration_husky_latest_dist_tag_v9_installed/node_modules/husky/package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
console.error('stale local vite-plus CLI was executed');
2+
process.exitCode = 42;

0 commit comments

Comments
 (0)