For those looking for examples using create-react-app
Install
yarn add --dev jest-canvas-mock
Create a new ${rootDir}/src/setupTests.js
with
import 'jest-canvas-mock';
For those looking for examples using create-react-app
Install
yarn add --dev jest-canvas-mock
Create a new ${rootDir}/src/setupTests.js
with
import 'jest-canvas-mock';