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

feat(rule): add allow option to expect-expect rule #139

Merged
merged 1 commit into from Aug 24, 2018

Conversation

hulkish
Copy link
Contributor

@hulkish hulkish commented Aug 19, 2018

This adds assertFunctionNames: ['expect'] option to expect-expect rule.

Note: current valid/invalid tests are left untouched & passing.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Could you add some tests using the new option?

Also, please update the schema for the rule: https://eslint.org/docs/developer-guide/working-with-rules#options-schemas

}
```

### `allow`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we call it assertNames or assertFunctions or something like that instead?

@hulkish hulkish force-pushed the expect-expect-options branch 3 times, most recently from f79f11a to bdb6ec0 Compare August 24, 2018 15:33
@hulkish
Copy link
Contributor Author

hulkish commented Aug 24, 2018

@SimenB ok, all set

@SimenB SimenB merged commit 97a5fce into jest-community:master Aug 24, 2018
@SimenB
Copy link
Member

SimenB commented Aug 24, 2018

Thank you!

@SimenB
Copy link
Member

SimenB commented Aug 24, 2018

🎉 This PR is included in version 21.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants