all
config.
This rule aims to prevent conditional expects.
Examples of incorrect code for this rule:
test('foo', () => {
if (true) {
expect(1).toBe(1)
}
})
Examples of correct code for this rule:
test('foo', () => {
expect(1).toBe(1)
})
all
config.
This rule aims to prevent conditional expects.
Examples of incorrect code for this rule:
test('foo', () => {
if (true) {
expect(1).toBe(1)
}
})
Examples of correct code for this rule:
test('foo', () => {
expect(1).toBe(1)
})