Node Test
8 rules @sarj/eslint-plugin@19.18.0
Complete effective rule inventory.
Rules
No enabled Node Test rules match this search.
-
node-test/no-assert-throws-asyncDisallow passing an async function to
assert.throws()/assert.doesNotThrow().: error in All Node Test contexts -
node-test/no-assert-throws-multiple-statementsDisallow multiple statements in
assert.throws()/assert.rejects()callbacks.: error in All Node Test contexts -
node-test/no-callback-and-promiseDisallow a test or hook from using both a callback and a Promise.
: warning in All Node Test contexts -
node-test/no-duplicate-mock-timers-enableDisallow enabling mock timers more than once without resetting them.
: warning in All Node Test contexts -
node-test/no-late-test-activityDisallow test activity inside detached asynchronous callbacks.
: warning in All Node Test contexts -
node-test/no-mock-timers-destructured-importDisallow destructured timer imports when using
mock.timers.: warning in All Node Test contexts -
node-test/no-unneeded-async-rejects-callbackDisallow unneeded async callbacks passed to
assert.rejects().: error in All Node Test contexts -
node-test/no-useless-assertionDisallow
assert.doesNotThrow()andassert.doesNotReject().: error in All Node Test contexts