avoiding typescript error @typescript-eslint/no-unsafe-assignment
in objectContaining()
#6614
-
expect(newAccount)
.toEqual(
expect.objectContaining({
id: expect.any(String), // Unsafe assignment of an `any` value.
}),
); I'm currently using id: expect.any(String) as string |
Beta Was this translation helpful? Give feedback.
Answered by
kevinlaw91
Oct 27, 2024
Replies: 1 comment
-
Disable eslint rule as suggested here: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kevinlaw91
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Disable eslint rule as suggested here:
#4543 (comment)