Skip to content

test.each no-done-callback false positive in version 24.1.2 #710

@voda

Description

@voda

Very similar to #709, but there is still a false positive when the test function has 2 arguments.

Plugin version: 24.1.2
Last working version: 24.1.0
Rule jest/no-done-callback has false positives with test.each

it.each([
	[1, 2],
	[2, 4],
	[3, 6],
])('.double(%i)', async (a: number, expected: number) => {
	expect(2 * a).toBe(expected);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions