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

Fix broken karma tests by upgrading sinon. #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benwiley4000
Copy link

Description

The karma tests weren't running because the invocation of enzyme's component.unmount() was triggering a performance.mark() call via React DOM. Turns out this was an issue with Sinon overwriting the Performance prototype and it was patched in version 6. So this PR just upgrades Sinon. I've verified locally the karma tests now pass with no issue.

Pull Request Checklist

  • Added/updated the following to reflect my change:
    • [N/A] Unit tests
    • [N/A] Documentation
  • Tested against the different major versions of React
    • [N/A] v15.5.x
    • [N/A] v16.x.x
  • Unit tests have passed.
  • [Pending] Code linting has passed.

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.

1 participant