File tree Expand file tree Collapse file tree
packages/cli/snap-tests-global/command-config-prepare-auto-hooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,3 +15,17 @@ export default defineConfig({
1515 },
1616
1717});
18+
19+ > vp config # run again to ensure idempotent
20+ > cat .vite-hooks/pre-commit # should remain unchanged
21+ vp staged
22+
23+ > cat vite.config.ts # should remain unchanged
24+ import { defineConfig } from 'vite-plus';
25+
26+ export default defineConfig({
27+ staged: {
28+ "*": "vp check --fix"
29+ },
30+
31+ });
Original file line number Diff line number Diff line change 77 " vp config # should install hooks automatically without prompting" ,
88 " git config --local core.hooksPath # should be .vite-hooks/_" ,
99 " cat .vite-hooks/pre-commit # should have vp staged" ,
10- " cat vite.config.ts # should have staged config"
10+ " cat vite.config.ts # should have staged config" ,
11+ " vp config # run again to ensure idempotent" ,
12+ " cat .vite-hooks/pre-commit # should remain unchanged" ,
13+ " cat vite.config.ts # should remain unchanged"
1114 ]
1215}
You can’t perform that action at this time.
0 commit comments