Skip to content

Commit 17e9ca9

Browse files
committed
test(snap): exclude nested-oxc-config-proj-1 fixture from repo fmt
The repo-level `vp check --fix` lint-staged hook was reformatting the snap test fixture to match the repo's own `singleQuote: true`, which erased the double-quoted string the fmt reproduction depends on. Exclude the fixture directory from the repo's `fmt.ignorePatterns` and restore the fixture source so the committed snap.txt captures both the lint and fmt failures.
1 parent 496cfca commit 17e9ca9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function hello() {
22
debugger;
3-
return 'hello from proj-1';
3+
return "hello from proj-1";
44
}
55

66
export { hello };

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default defineConfig({
6969
'**/tmp/**',
7070
'packages/cli/snap-tests/check-*/**',
7171
'packages/cli/snap-tests/fmt-ignore-patterns/src/ignored',
72+
'packages/cli/snap-tests/nested-oxc-config-proj-1/**',
7273
'packages/cli/snap-tests-global/migration-lint-staged-ts-config',
7374
'docs/**',
7475
'ecosystem-ci/*/**',

0 commit comments

Comments
 (0)