📝 Enforce a maximum number of expect per test.
all config.
Examples of incorrect code for this rule with max: 1:
test('foo', () => {
expect(1).toBe(1)
expect(2).toBe(2)
})Examples of correct code for this rule:
test('foo', () => {
expect(1).toBe(1)
})| Name | Description | Type |
|---|---|---|
max |
Maximum number of expect calls allowed in a test. |
Number |
Default:
5
Maximum number of expect per test.
{
max: number
}