title: unit test raises error because of .getContext() is not implemented
body: <p>I am writing tests using Jest for components that use canvas elements. I keep getting an error when I run my tests that looks like this.</p>
  
  <pre><code>Error: Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)
  </code></pre>
  
  <p>From my understanding Jest uses jsdom for its testing and that jsdom is compatible with canvas if you install the canvas or canvas-prebuilt packages.</p>
  
  <p>I have tried installing each of these packages and neither of them have resolved the error. The only thing that I think could be going wrong is that jsdom cannot find the canvas or canvas-prebuilt packages. Does anyone know a way to fix this error or test to see if jsdom is finding the other packages? Thanks a lot!</p>