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

New rule: no-test-only #118

Closed
aladdin-add opened this issue Jun 7, 2021 · 1 comment · Fixed by #145
Closed

New rule: no-test-only #118

aladdin-add opened this issue Jun 7, 2021 · 1 comment · Fixed by #145

Comments

@aladdin-add
Copy link
Contributor

aladdin-add commented Jun 7, 2021

refs: https://github.com/eslint/rfcs/tree/main/designs/2020-rule-tester-only
RuleTester test cases support a new only property to run an individual case or subset of cases for less noisy debugging. It should be only used in development.

valid: [
{ code: "", only: true}, // should report an error
]
valid: [
ruleTester.only("var i = 0;"), // should report an error
]
@aladdin-add
Copy link
Contributor Author

it has been released in eslint v7.29.0. refs: https://eslint.org/blog/2021/06/eslint-v7.29.0-released

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

Successfully merging a pull request may close this issue.

1 participant