Closed
Description
Place for notes as I'm implementing tests on the tests
branch.
Some initial notes:
- Will need to use
enzyme
for component testing as we actually do need the ref in this library's case to test instance methods, so can't usereact-testing-library
. We also do need to test actually mounting to the DOM (due tocanvas
usage), soreact-test-renderer
doesn't really suffice either. - Thought I would also need something to support
canvas
like thecanvas
package orcanvas-prebuilt
, but apparently need fulljsdom
support for enzyme (https://airbnb.io/enzyme/docs/guides/jsdom.html). The set-up forjsdom
forenzyme
however seems equivalent to whatbrowser-env
does, so that can be a replacement.