-
When testing a component that renders a NumberInput component from the react-component-library, there is a need to include jest-canvas-mock into the devDependencies of the project due to the canvas context not being available in jest. The issue arises in the following commit in version 2.16.0 At minimum the documentation or changelog should include references to this need for jest-canvas-mock when testing using jest. Steps to reproduce
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Did you spawn an application using the CRA template package? This is included in the jest setup configuration: |
Beta Was this translation helpful? Give feedback.
-
I'm closing this issue and converting it to a discussion so that it's available for future reference. |
Beta Was this translation helpful? Give feedback.
Did you spawn an application using the CRA template package? This is included in the jest setup configuration:
227a3f3