Closed bas00445 closed 1 year ago
I have the same error on my project. This is due to to the latest version of jest-canvas-mock
2.5.1.
npm i -D jest-canvas-mock@2.5.0
to install the previous version.
@erwanlfrt Thank you for the solution, it's working now🎉
In my case, I'm using yarn. The solution is
jest-canvas-mock
in the resolutions
field inside package.json
"resolutions": {
"jest-canvas-mock": "2.5.0"
},
yarn install
again
Is there anyone facing this problem when run
vitest run
?I'm using vitest with testing-library/react, Thank you
These are my dependencies:
// vitest.config.ts
// vitest.setup.ts