You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the instructions for using @testing-library/jest-dom with Vitest provided here no longer seems to work in the latest version of Vitest. (Confirmed this is also the case for [email protected])
Does #621 fix the problem? If I understand correctly, this is something that consumers of the library would need to do in their own repos, so all we can do is document this in the README, right?
@testing-library/jest-dom
version: 6.4.8node
version: 20.14.0vitest
version: 2.0.4pnpm
version: 9.4.0@testing-library/react
version: 16.0.0Relevant code or config:
What you did:
Upgraded from
vitest
2.0.3 from 2.0.4What happened:
After upgrading to
[email protected]
this TypeScript error appeared in every@testing-library/jest-dom
assertion:Reproduction:
https://codesandbox.io/p/devbox/silly-panna-vx86jv
See src/utils.test.tsx
Problem description:
Following the instructions for using
@testing-library/jest-dom
with Vitest provided here no longer seems to work in the latest version of Vitest. (Confirmed this is also the case for[email protected]
)Suggested solution:
As suggested here: #546 (comment)
In tsconfig.json:
This resolves the issue.
The text was updated successfully, but these errors were encountered: