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