Thanks for your interest in improving test quality tooling!
git clone https://github.com/mathonsunday/useless-test-detector
cd useless-test-detector
npm install
npm run buildTest the detector on a project:
node dist/cli.js --dirs /path/to/project/srcFound a new pattern of useless tests? Add it to src/index.ts:
- Add detection logic in
analyzeTestFile() - Add a descriptive reason string
- Test it on real codebases
- Update README with the new pattern
- Keep changes focused (one pattern per PR)
- Test on at least 2 real codebases
- Update README if adding new detection
- No false positives allowed
- Update version in
package.json - Commit:
git commit -m "chore: bump version to X.Y.Z" - Create GitHub release
- GitHub Actions will auto-publish to npm
Open an issue or discussion on GitHub.