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

Remove prefer-expect-query-by rule from shareable configs #60

Merged
merged 3 commits into from
Jan 15, 2020
Merged

Conversation

Belco90
Copy link
Member

@Belco90 Belco90 commented Jan 15, 2020

As mentioned in the original issue #59 :

  • remove prefer-expect-query-by rule from shareable configs
  • improve doc

emmenko
emmenko previously approved these changes Jan 15, 2020
Copy link
Contributor

@emmenko emmenko left a comment

Choose a reason for hiding this comment

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

Thanks

test('some test', () => {
const rendered = render(<App />);
expect(rendered.getByText('Foo')).toBeInTheDocument();
expect(rendered.getAllByText('Foo')[0]).toBeInTheDocument();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also keep the examples without not? At the end it's still valid to use expect(queryByText('Foo')).toBeInTheDocument()

Copy link
Member Author

Choose a reason for hiding this comment

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

Of course 🤦‍♂️. Let me get this back.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Collaborator

@thomaslombart thomaslombart left a comment

Choose a reason for hiding this comment

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

LGTM!

@Belco90 Belco90 merged commit 93e2a8b into master Jan 15, 2020
@Belco90 Belco90 deleted the issue/59 branch January 15, 2020 16:31
@Belco90
Copy link
Member Author

Belco90 commented Jan 15, 2020

🎉 This PR is included in version 1.4.1 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants