Skip to content

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.

4 participants