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

Rule jest-dom/prefer-to-have-text-content autofix handles regexes improperly #53

Closed
RIP21 opened this issue Jul 2, 2020 · 3 comments · Fixed by #65
Closed

Rule jest-dom/prefer-to-have-text-content autofix handles regexes improperly #53

RIP21 opened this issue Jul 2, 2020 · 3 comments · Fixed by #65
Labels
bug Something isn't working released

Comments

@RIP21
Copy link

RIP21 commented Jul 2, 2020

  • eslint-plugin-jest-dom version: 3.0.1
  • node version: 12.16.1
  • npm version: 6.13.4

This

expect(container.textContent).toMatch(/No Results/)

Turns into

expect(container).toHaveTextContent(//No Results//)
@nickserv nickserv added the bug Something isn't working label Jul 2, 2020
@nickserv
Copy link
Member

nickserv commented Jul 2, 2020

@all-contributors add @RIP21 for bug

@allcontributors
Copy link
Contributor

@nickmccurdy

I've put up a pull request to add @RIP21! 🎉

@benmonro
Copy link
Member

🎉 This issue has been resolved in version 3.1.4 🎉

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
bug Something isn't working released
Projects
None yet
3 participants