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

Jest Tests #4

Merged
merged 1 commit into from
Feb 11, 2019
Merged

Jest Tests #4

merged 1 commit into from
Feb 11, 2019

Conversation

matt-oakes
Copy link
Collaborator

This adds tests for the Javascript code using Jest. It tests 100% of the JS code by mocking the native module interface.

To make this easier it adds a helper class which exposes the native module and the native event emitter. This is based off a pattern from the NativeAnimatedHelper.js file in the React Native Core and makes it very easy to simulate events being emitted.

package.json Outdated Show resolved Hide resolved
Copy link

@cpojer cpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, nice work!

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.

2 participants