Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

No Way(?) To Disable Unnecessary Error (Which Should be a Warning?) #3089

Closed
machineghost opened this issue Aug 20, 2022 · 2 comments
Closed
Labels

Comments

@machineghost
Copy link

machineghost commented Aug 20, 2022

I have some files with old tests from my previous test runner (Mocha). I have them completely commented out, but when I run Ava I get a ton of:

✖ No tests found in src/foo.spec.js, make sure to import "ava" at the top of your test file

Is there any sort of command line flag I can provide to tell Ava "yes I know those files have no tests, I'll fix them later, but for now please stop telling me?" It seems like that would be handy, as commented-out test files aren't actually harmful.

Also, regardless of the above, why are these errors (with red coloring and an X): if nothing is broken, shouldn't they be warnings instead?

@machineghost
Copy link
Author

Nevermind, found --failWithoutAssertions!

@machineghost
Copy link
Author

Actually, that didn't help :( Re-opening.

@machineghost machineghost reopened this Aug 20, 2022
@avajs avajs locked and limited conversation to collaborators Aug 22, 2022
@novemberborn novemberborn converted this issue into discussion #3090 Aug 22, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

1 participant