JoshuaKGoldberg / JoshuaKGoldberg/TypeStat
Intelligently suggest test file globs based on what's on disk
Open
area: cli
good first issue
status: accepting prs
type: enhancement
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 47
- Avg merge
- 15h 55m
- Merged PRs (30d)
- 21
Description
Right now, the interactive `typestat` CLI has a hardcoded list of common suggested _"where are your test files"_ globs. `test/**/*.{ts,tsx}` and the like are commonly used by projects, but there are a few places that it could probably infer them from:
* `jest.config.js` or some other common Jest location
* Equivalents to `jest.config.js` for other test frameworks
* `tsconfig.test.json`/`test/tsconfig.json` or some other common test project
It'd be nifty if the CLI looked for these on disk and added whatever already exists to the list of suggested globs.
Contributor guide
Assessment
This issue has not been assessed yet.