Skip to content

Commit b1896ef

Browse files
committed
chore(lint): gitignore the import-cycle test's in-source scratch fixture
import-cycle-lint.test.ts writes a real a.ts <-> b.ts cycle inside packages/cli/src, because that is the only place import-x/no-cycle actually reaches. Cleanup runs in afterAll, so a killed run can strand the fixture in the tracked source tree. Ignore the prefix as a backstop.
1 parent dce404c commit b1896ef

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,16 @@ __pycache__/
4646

4747
# Agent and manual git worktrees (full second checkouts; see worktrees-pnpm skill)
4848
worktrees/
49+
50+
# Scratch fixture written by `packages/cli/test/import-cycle-lint.test.ts`. That
51+
# test writes a real a.ts <-> b.ts cycle INSIDE `packages/cli/src` and asserts
52+
# `import-x/no-cycle` reports it. The location is forced, not a convenience: the
53+
# rule only sees files the flat config matches, and the type-aware block needs
54+
# the file inside a tsconfig (`packages/cli/tsconfig.json` includes `src`) — a
55+
# fixture in the OS temp dir is refused as outside the config base path, and one
56+
# elsewhere in the repo fails to parse and reports zero cycles, which is the
57+
# vacuous green the test exists to rule out. Cleanup runs in `afterAll`, so a
58+
# killed run (Ctrl+C, OOM, CI cancellation) can strand a live cycle in the
59+
# source tree. This keeps that debris out of commits; delete the directory, not
60+
# this line.
61+
/packages/cli/src/__cycle-guard-*/

0 commit comments

Comments
 (0)