Skip to content

no-test-return-statement does not handle .each()() #811

@G-Rath

Description

@G-Rath

i.e

it.each()("one", function () {
  return expect(1).toBe(1);
});

doesn't trigger no-test-return-statement

This'll be because the way we track if we're in a test case or not based on CallExpression nodes.

I expect it'll be fixed by the refactor I described here, which'll change the node we return true on.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions