Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arojunior/tests-with-react-native
Simple tests with React-native using Detox, Jest and Enzyme
https://github.com/arojunior/tests-with-react-native
detox enzyme react react-native
Last synced: 16 days ago
JSON representation
Simple tests with React-native using Detox, Jest and Enzyme
- Host: GitHub
- URL: https://github.com/arojunior/tests-with-react-native
- Owner: arojunior
- Created: 2018-10-27T14:42:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-27T14:43:16.000Z (about 6 years ago)
- Last Synced: 2024-11-07T13:53:24.466Z (2 months ago)
- Topics: detox, enzyme, react, react-native
- Language: JavaScript
- Size: 897 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tests with react-native
Just some experiments with test tools for react-native
### with detox
**Setup**
To use Detox in OSX you need to follow the (Getting started)[https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.md] guide (Step 1, items 3 and 4).Detox has some bugs, some weird behaviors, so you need to be patience.
If you get errors in test telling "Failed to type string ..., because keyboard was not shown on screen." then you need to enabled the keyboard on simulator.
Also, sometimes the tests just crash with messages like "detox[5438] ERROR: [exec.js/EXEC_FAIL, #4]" and "detox[5438] ERROR: [index.js/DETOX_INIT_ERROR]", but if you try again it just works... another weird behavior.**Running tests**
```sh
detox build
detox test
```### with enzyme
```sh
yarn test
```