Skip to content

fix(tsextractor): emit test_ref facts so test-only helpers aren't dea… - #93

Merged
dejo1307 merged 1 commit into
mainfrom
fix/ts-testref-extractor-v103
Jul 10, 2026
Merged

fix(tsextractor): emit test_ref facts so test-only helpers aren't dea…#93
dejo1307 merged 1 commit into
mainfrom
fix/ts-testref-extractor-v103

Conversation

@dejo1307

Copy link
Copy Markdown
Collaborator

…d code

TypeScript was the last language where a production symbol called only from its .test.ts(x)/.spec.ts(x) was reported dead under config.Default().

Close both gates:

  • add the four TS/TSX test globs to config.Default().TestGlobs
  • implement plugin.TestRefExtractor on tsextractor, reusing the production collectTSFileRefs walk/resolvers (fully-qualified targets, no bare-name over-crediting via orphans' lastSeg fold)

Bump cacheVersion to v103 (tsextractor is a FileOwner) + cachecov entry; add ts_sample fixture and regenerate its golden. On golf-ui, test_ref goes 0 -> 9 and the src/app.sitemap dead-code false positive resolves, with no god-class/hotspots inflation.

…d code

TypeScript was the last language where a production symbol called only from
its *.test.ts(x)/*.spec.ts(x) was reported dead under config.Default().

Close both gates:
- add the four TS/TSX test globs to config.Default().TestGlobs
- implement plugin.TestRefExtractor on tsextractor, reusing the production
  collectTSFileRefs walk/resolvers (fully-qualified targets, no bare-name
  over-crediting via orphans' lastSeg fold)

Bump cacheVersion to v103 (tsextractor is a FileOwner) + cachecov entry;
add ts_sample fixture and regenerate its golden. On golf-ui, test_ref goes
0 -> 9 and the src/app.sitemap dead-code false positive resolves, with no
god-class/hotspots inflation.
@dejo1307
dejo1307 merged commit 99e9acb into main Jul 10, 2026
4 checks passed
@dejo1307
dejo1307 deleted the fix/ts-testref-extractor-v103 branch July 17, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant