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).
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
orit
which are not imported in any file not matched by Jest'stestMatch
(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 🙂