Node Test
8 rules @sarj/eslint-plugin@19.52.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(). -
node-test/no-assert-throws-multiple-statementsDisallow multiple statements in
assert.throws()/assert.rejects()callbacks. -
node-test/no-callback-and-promiseDisallow a test or hook from using both a callback and a Promise.
-
node-test/no-duplicate-mock-timers-enableDisallow enabling mock timers more than once without resetting them.
-
node-test/no-late-test-activityDisallow test activity inside detached asynchronous callbacks.
-
node-test/no-mock-timers-destructured-importDisallow destructured timer imports when using
mock.timers. -
node-test/no-unneeded-async-rejects-callbackDisallow unneeded async callbacks passed to
assert.rejects(). -
node-test/no-useless-assertionDisallow
assert.doesNotThrow()andassert.doesNotReject().