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

React native unit tests #49

Merged
merged 13 commits into from
Apr 22, 2020
Merged

React native unit tests #49

merged 13 commits into from
Apr 22, 2020

Conversation

smithki
Copy link
Contributor

@smithki smithki commented Apr 16, 2020

πŸ“¦ Pull Request

Adds unit testing related to #37

πŸ—œ Versioning

(Check one!)

  • Patch: Bug Fix?
  • Minor: New Feature?
  • Major: Breaking Change?

βœ… Fixed Issues

🚨 Test instructions

Run yarn test πŸ˜„

⚠️ Update CHANGELOG.md

  • I have updated the Upcoming Changes section of CHANGELOG.md with context related to this Pull Request.

@smithki smithki self-assigned this Apr 16, 2020
@smithki smithki mentioned this pull request Apr 18, 2020
4 tasks
@smithki smithki marked this pull request as ready for review April 22, 2020 05:41
@smithki smithki merged commit 849d1b0 into react_native Apr 22, 2020
@smithki smithki deleted the react_native_unit_tests branch April 22, 2020 05:41
smithki added a commit that referenced this pull request Apr 22, 2020
* Update build system to support a React Native bundle

* Add initial implementation for React Native (requires e2e testing)

* Fix CJS builds and rename 'WebViewController' to 'ReactNativeWebViewController'

* Remove unnecessary return statement

* Fix React dependency regex in Webpack config

* Update CircleCI config

* Re-organize '/core' tests to reflect additional view controllers

* Organizational comments

* Remove superfluous comment

* Add first draft CHANGELOG entry for React Native feature

* Update 'isViewReady' condition

* Package 'react-native-webview' and 'whatwg-url' in the RN bundle

* Add .vscode to git ignores

* Add /dist to eslint ignores

* Clean up Webpack config

* Externalize 'react-native-webview' & fix event listener bug in 'PayloadTransport'

* React native unit tests (#49)

* Add constructor test for MagicSDKReactNative

* Add 'magic.link' as homepage in 'package.json'

* Update 'tsconfig.jsx' to 'react-native'

* Revert change to tsconfig

* Fix test preprocessing to support React/React Native

* Fix typo

* Fix 'PayloadTransport.post' tests

* Cleanup test files & improve core SDK coverage after RN changes

* Add unit tests for 'PayloadTransport.handleReactNativeWebViewMessage'

* Update architectural overview with React Native-specific info

* Add unit tests for 'ReactNativeWebViewController' methods (WIP)

* Add coverage ignore comment

* Add 'utils/url' tests

* Add some testing cleanups
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

1 participant