Repository navigation
noDuplicateExpect
#13069
gameroman
started this conversation in
Rule suggestion
`noDuplicateExpect`
#13069
Replies: 1 comment 3 replies
|
How would you expect this rule to behave in this scenario? expect(foo.state).toEqual(3);
foo.doSomething(); // something that could change foo.state, but the test asserts it shouldn't change
expect(foo.state).toEqual(3); |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Same as proposed vitest-dev/eslint-plugin-vitest#938
All reactions