TypeError: Cannot set property 'fillStyle' of null
TypeError: Cannot set property 'fillStyle' of null
Solution
https://www.npmjs.com/package/jest-canvas-mock
$ yarn add --dev jest-canvas-mock
Edit package.json and add
{
"jest": {
"setupFiles": ["jest-canvas-mock"],
(...)
}
}
Recent Comments