jest-community/eslint-plugin-jest

Warn about tests not run by jest

Open

#68 opened on Feb 11, 2018

 (4 comments) (0 reactions) (0 assignees)TypeScript (251 forks)auto 404
config supporthelp wantednew rule

Repository metrics

Stars
 (1,170 stars)
PR merge metrics
 (PR metrics pending)

Description

Ava has a cool rule called no-ignored-test-files. It would be great if we could port it.

It won't be as easy for us since we use globals. But looking for either describe, test or it which are not imported in any file not matched by Jest's testMatch (and the other ways of configuring where jest looks for tests) should be a good start.

Jest has a flag called listTests, but I'm not sure if we're able to call it programmatically (or if we'd want to).

Hopefully this is doable 🙂

Contributor guide