Skip to content

Add tests #33

Closed
Closed
@agilgur5

Description

@agilgur5

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 use react-testing-library. We also do need to test actually mounting to the DOM (due to canvas usage), so react-test-renderer doesn't really suffice either.
  • Thought I would also need something to support canvas like the canvas package or canvas-prebuilt, but apparently need full jsdom support for enzyme (https://airbnb.io/enzyme/docs/guides/jsdom.html). The set-up for jsdom for enzyme however seems equivalent to what browser-env does, so that can be a replacement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: internalChanges only affect the internals and not the API or usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions