forked from blackjk3/react-signature-pad
-
-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Labels
kind: internalChanges only affect the internals and not the API or usageChanges only affect the internals and not the API or usage
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.
Metadata
Metadata
Assignees
Labels
kind: internalChanges only affect the internals and not the API or usageChanges only affect the internals and not the API or usage