expect.toMatchObject type variable compat with @types/jest #1168
Unanswered
calvin-sketchsoft
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm migrating my company project's test suite from Jest to Vitest, some of which have unit test like this:
With @types/jest, VSCode and tsc property understand it.
but when I remove @types/jest from package and apply vitest/globals to tsconfig.json, type check breaks.
Am I missing something, or could this be an intended behavior of Vitest?
Beta Was this translation helpful? Give feedback.
All reactions