We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
toBeTrue()
eslint-plugin-jest-dom
node
npm
Relevant code or config
Using jest-extended's method toBeTrue() does not work with autofixer of jest-dom/prefer-to-have-class
jest-extended
jest-dom/prefer-to-have-class
expect(node.classList.contains('a')).toBe(true); expect(node.classList.contains('b')).toBeTrue();
What you did:
Run auto-fixer for jest-dom/prefer-to-have-class assertions
What happened:
expect(node).toHaveClass('a'); expect(node).not.toHaveClass('b');
Problem description:
toBeTrue() will be fixed to not.toHaveClass()
not.toHaveClass()
Suggested solution:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
eslint-plugin-jest-dom
version: 5.4.0node
version: 20.9npm
version: 9.8.1Relevant code or config
Using
jest-extended
's methodtoBeTrue()
does not work with autofixer ofjest-dom/prefer-to-have-class
What you did:
Run auto-fixer for
jest-dom/prefer-to-have-class
assertionsWhat happened:
Problem description:
toBeTrue()
will be fixed tonot.toHaveClass()
Suggested solution:
The text was updated successfully, but these errors were encountered: