all
config.
This rule disallows the use of certain matchers.
{
"vitest/no-restricted-matchers": [
"error",
{
"not": null,
}
]
}
Examples of incorrect code for this rule with the above configuration
expect(a).not.toBe(b)
Examples of correct code for this rule with the above configuration
expect(a).toBe(b)