mantine
mantine copied to clipboard
import statement in mock webapi example
Link to the page where something is not right
https://v7.mantine.dev/guides/jest#mock-web-apis
What is wrong?
The import statement for the extend-expect will no longer work from v6+ of testing-library/jest-dom module.
See the release notes here https://github.com/testing-library/jest-dom/releases/tag/v6.0.0
It should be changed to i.e. import "@testing-library/jest-dom";
Self-service
- [ ] I would be willing to implement a fix for this issue
It works correctly in the mantine repostitory with @testing-library/jest-dom version 6.4.2
The example in the docs is deprecated.
ah, yes, I see now
Fixed in 7.9.1