JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Intelligently suggest test file globs based on what's on disk

Open
#294 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.