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
Error: Uncaught [TypeError: Cannot set properties of undefined (setting 'fillStyle')]
The above error occurred in one of your React components:
at Lazy
at ...
at ...
...
React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.
I am using jest-canvas-mock and just importing it in my setupTest.ts file. I have read their documentation but I haven't found any solution.
The text was updated successfully, but these errors were encountered:
I am using Lottie to render some animations in React and I am using Jest with React Testing Library. When I test a component like this:
Everything goes fine.
But if I test a component that imports this component via lazy loading like this:
Then I get an error like this:
I am using
jest-canvas-mock
and just importing it in mysetupTest.ts
file. I have read their documentation but I haven't found any solution.The text was updated successfully, but these errors were encountered: