Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add globals and custom transformer to get unit testing working #47

Closed
wants to merge 1 commit into from

Conversation

matt-hooper
Copy link
Collaborator

I managed to get it to the point where the unit tests now run.
To try it, navigate to the perspective-viewer-d3fc folder

  • cd packages/perspective-viewer-d3fc
  • yarn or npm install
  • npm run test:unit

To get the babel to work I had to create a custom transformer (test/transform.js). This also required a workaround found here jestjs/jest#7868

For the d3fc depends on Custom Elements (v1). To avoid getting an error some global variables were required. This will need to be refactored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants