Skip to content

Commit 25539b2

Browse files
authored
Mention jest setup in README
1 parent 9daa917 commit 25539b2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ If you use Jest as a test runner, add the following in your root package.json:
146146
}
147147
```
148148

149+
## Jest notes
150+
151+
Follow the react-native setup guide for [ts-jest](https://github.com/kulshekhar/ts-jest).
152+
153+
Alternatively, if you want to use exactly the same transformation code for both Jest and react-native check out [this comment](https://github.com/ds300/react-native-typescript-transformer/issues/21#issuecomment-330148700).
154+
155+
Note that there have been no reports of problems arising from differences between code compiled by the `ts-jest` transformer and code compiled by `react-native-typescript-transformer`. Additionally, `ts-jest` takes care of a lot of edge cases and is more configurable.
149156

150157
## License
151158

0 commit comments

Comments
 (0)