Skip to content

[no-restricted-matchers] New implementation using startsWith results in problems with selectors that match the beginning of another selecter #1235

Closed
@cascornelissen

Description

@cascornelissen

I feel like this change has unintended side effects. With the following item in the map we're also getting errors on toBeDefined, toBeUndefined, etc.

'toBe': "Use `toEqual()` instead.",

Originally posted by @cascornelissen in #1218 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions