-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add rule to avoid test.only() #4
base: main
Are you sure you want to change the base?
Conversation
docs/rules/no-test-only.md
Outdated
Examples of **incorrect** code for this rule: | ||
|
||
```javascript | ||
test.only(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a full example with test description and test body
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added full test example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see old one in File changed
. Maybe you forgot to git push
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
Now I pushed changes.
There is a good practice adding to PR description (you still can edit it)
With it, issues will be closed automatically on PR merge. |
Thank you! I didn't know that. |
docs/rules/no-test-only.md
Outdated
|
||
```javascript | ||
test.only("sum", () => { | ||
tassert.type(math.sum, "function"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s remove 15-18 and 26-29 lines to focus on important.
Use () => {}
like in other rules.
Looks good for me. Let’s wait @yudai-nkt review. He knows more about ESLint. |
Fixes #3