sonarjs/assertions-in-test-cases
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/assertions-in-test-cases": "error",
},
},
];Assertions should be placed inside test cases or hooks
No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/assertions-in-test-cases
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/assertions-in-test-cases": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Callbacks of array methods should have return statements
Async test assertions should be awaited or returned
Arguments to built-in functions should match documented types
Nested properties of Lodash and Underscore.js clone results should not be mutated