I'm developing a js library that should be consumable by react-native projects as well. The javascript engine used by react-native is JavaScriptCore, which has its differences compared to node or engines used in browsers. There are quite a few things missing, or behaving differently: URL, Buffer, Blob.
It would be nice to catch these kind of issues without causing regressions for library consumers.
Is there a test runner which supports such scenario?
The usual go-to test framework used with react-native is Jest,
https://jestjs.io/docs/en/tutorial-react-native.html
Check if it will suit your requirements.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.