-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enhancement: Add the ability to skip valid or invalid tests #7481
Comments
Looking through https://eslint.org/docs/latest/integrate/nodejs-api, it looks like the core ESLint In fact, ours does too! At least with Mocha. Repro here: https://github.com/JoshuaKGoldberg/repros/tree/eslint-rule-tester-empty-arrays npx mocha *.test.js
0 passing So I'm betting it's your specific test runner that's giving you grief. Both the core To accept this issue, I think we'd want to see a reproduction that shows where the core ESLint |
Yeah I wouldn't want us to break from eslint here - the intent with I believe that the logic I used was exactly the same as the underlying RuleTester. |
Maybe relevant: eslint/eslint#17455 |
We have accepted this as an enhancement in ESLint and it will be implemented soon. |
Great, thanks! Once the ESLint PR is approved we can take one in here. Just making sure our implementation doesn't differ too much. |
Looks like this PR was merged: eslint/eslint#17475 |
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
rule-tester
My proposal is suitable for this project
Description
I would like to be able to skip valid or invalid scenarios in some tests. In some cases, such examples are simply not needed.
Fail
This test is currently crashing with an error:
Error: No test found in suite valid
.The text was updated successfully, but these errors were encountered: