sonarjs/testing-library-query-assertion
eslint-plugin-sonarjs
Safe autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/testing-library-query-assertion": "error",
},
},
];Testing Library queries should match presence assertions
No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/testing-library-query-assertion
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/testing-library-query-assertion": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Testing Library disappearance waits should use non-throwing queries
Tests should check which exception is thrown
Table cells should reference their headers
Names of regular expressions named groups should be used