@@ -100,18 +100,17 @@ module.exports = {
100100π§ indicates that a rule is fixable.
101101
102102<!-- __BEGIN AUTOGENERATED TABLE__ -->
103-
104- | Name | π | π§ | Description |
105- | ---------------------------------------------------------------------------------------------------------------------------------------------- | --- | --- | ------------------------------------------------------------------------------------------------ |
106- | [ prefer-checked] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-checked.md ) | π | π§ | prefer toBeChecked over checking attributes |
107- | [ prefer-empty] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-empty.md ) | π | π§ | Prefer toBeEmpty over checking innerHTML |
108- | [ prefer-enabled-disabled] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-enabled-disabled.md ) | π | π§ | prefer toBeDisabled or toBeEnabled over checking attributes |
109- | [ prefer-focus] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-focus.md ) | π | π§ | prefer toHaveFocus over checking document.activeElement |
110- | [ prefer-in-document] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-in-document.md ) [ ![ experimental] ( http://badges.github.io/stability-badges/dist/experimental.svg )] ( http://github.com/badges/stability-badges ) | | π§ | Prefer .toBeInTheDocument() in favor of checking the length of the result using .toHaveLength(1) |
111- | [ prefer-required] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-required.md ) | π | π§ | prefer toBeRequired over checking properties |
112- | [ prefer-to-have-attribute] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-to-have-attribute.md ) | π | π§ | prefer toHaveAttribute over checking getAttribute/hasAttribute |
113- | [ prefer-to-have-style] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-to-have-style.md ) | π | π§ | prefer toHaveStyle over checking element style |
114- | [ prefer-to-have-text-content] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-to-have-text-content.md ) | π | π§ | Prefer toHaveTextContent over checking element.textContent |
103+ Name | π | π§ | Description
104+ ----- | ----- | ----- | -----
105+ [ prefer-checked] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-checked.md ) | π | π§ | prefer toBeChecked over checking attributes
106+ [ prefer-empty] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-empty.md ) | π | π§ | Prefer toBeEmpty over checking innerHTML
107+ [ prefer-enabled-disabled] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-enabled-disabled.md ) | π | π§ | prefer toBeDisabled or toBeEnabled over checking attributes
108+ [ prefer-focus] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-focus.md ) | π | π§ | prefer toHaveFocus over checking document.activeElement
109+ [ prefer-in-document] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-in-document.md ) | π | π§ | Prefer .toBeInTheDocument() for asserting the existence of a DOM node
110+ [ prefer-required] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-required.md ) | π | π§ | prefer toBeRequired over checking properties
111+ [ prefer-to-have-attribute] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-to-have-attribute.md ) | π | π§ | prefer toHaveAttribute over checking getAttribute/hasAttribute
112+ [ prefer-to-have-style] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-to-have-style.md ) | π | π§ | prefer toHaveStyle over checking element style
113+ [ prefer-to-have-text-content] ( https://github.com/testing-library/eslint-plugin-jest-dom/blob/master/docs/rules/prefer-to-have-text-content.md ) | π | π§ | Prefer toHaveTextContent over checking element.textContent
115114
116115<!-- __END AUTOGENERATED TABLE__ -->
117116
0 commit comments