📝 Require local Test Context for concurrent snapshot tests.
💼recommended config. This rule warns in the 🌐 all config.
Examples of incorrect code for this rule:
test.concurrent('myLogic', () => {
expect(true).toMatchSnapshot()
})
describe.concurrent('something', () => {
test('myLogic', () => {
expect(true).toMatchInlineSnapshot()
})
})Examples of correct code for this rule:
test.concurrent('myLogic', ({ expect }) => {
expect(true).toMatchSnapshot()
})
test.concurrent('myLogic', (context) => {
context.expect(true).toMatchSnapshot()
})