Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn about tests not run by jest #68

Open
SimenB opened this issue Feb 11, 2018 · 3 comments
Open

Warn about tests not run by jest #68

SimenB opened this issue Feb 11, 2018 · 3 comments

Comments

@SimenB
Copy link
Member

SimenB commented Feb 11, 2018

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 🙂

@brianlmacdonald
Copy link
Contributor

Can I give this a shot?

@SimenB
Copy link
Member Author

SimenB commented Mar 10, 2018

Yeah, go for it!

@spotlesscoder
Copy link

Who / what is Ava?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants