mantine icon indicating copy to clipboard operation
mantine copied to clipboard

import statement in mock webapi example

Open petrakow opened this issue 1 year ago • 3 comments

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

petrakow avatar Apr 30 '24 16:04 petrakow

It works correctly in the mantine repostitory with @testing-library/jest-dom version 6.4.2

rtivital avatar May 02 '24 11:05 rtivital

image

The example in the docs is deprecated.

petrakow avatar May 02 '24 12:05 petrakow

ah, yes, I see now

rtivital avatar May 02 '24 12:05 rtivital

Fixed in 7.9.1

rtivital avatar May 08 '24 10:05 rtivital