Skip to content

Commit 8003df2

Browse files
authored
docs(readme): Features section (#10)
1 parent 08571a6 commit 8003df2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ React Native solves this problem through [Jest](https://jestjs.io/). They provid
2020

2121
This library aims to solve this problem. It provides mocks just as React Native does, but in much faster/simpler way and without the need of Jest. It also transforms the React Native Flow code on the fly, and solves the haste map modules so don't have to worry about that either. Transforming on the fly takes a few seconds the first time, but then it get's cached and it gets 6x faster. Overall, this library makes it possible to test React Native in other frameworks, like [Mocha.js](https://mochajs.org/), etc.
2222

23+
### Features
24+
25+
- Faster and simpler than Jest transforming all your code.
26+
- Compatible with [@testing-library/react-native](https://callstack.github.io/react-native-testing-library/) renderer.
27+
- Large range of compatibility. Uses the same approach as React Native's original mocks.
28+
- Decoupled from Jest. Testing framework agnostic.
29+
- Easy to use/setup.
30+
2331
## Requirements
2432

2533
- **Node.js:** >=18
@@ -50,7 +58,7 @@ import "react-native-testing-mocks/register";
5058
// ...rest of your setup code
5159
```
5260

53-
### With Mocha.js
61+
### Mocha.js Example
5462

5563
Some frameworks like Mocha.js gives you a place to load setup modules. In Mocha you can do that with the `--require` CLI option, or using the `.mocharc.json` file:
5664

0 commit comments

Comments
 (0)