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

Valid expect #82

Merged
merged 9 commits into from
Aug 21, 2022
Merged

Valid expect #82

merged 9 commits into from
Aug 21, 2022

Conversation

mskelton
Copy link
Member

Fixes #65
Fixes #51

Adds a valid-expect rule similar to Jest's same named rule. This both ensures that matchers are added and used on expect calls and also adds options to specify min/max length for expect arguments. This is a very generic way to fulfill use cases as described in #51 if a user wishes to ensure that all expect calls have custom messages.

@mskelton mskelton marked this pull request as draft August 21, 2022 03:09
@mskelton mskelton marked this pull request as ready for review August 21, 2022 03:22
Copy link
Collaborator

@mxschmitt mxschmitt left a comment

Choose a reason for hiding this comment

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

Enable it by default?

```

### `minArgs` & `maxArgs`

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

@mskelton
Copy link
Member Author

Enable it by default?

Good call, updated.

@mskelton mskelton merged commit 9599a09 into main Aug 21, 2022
@mskelton mskelton deleted the valid-expect branch August 21, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants