Skip to content

roycwc/typescript-react-native-unit-test-demo

Repository files navigation

Blazing fast Unit testing for React Native project in Typescript

Jest is slow

Using custom mocha compiler (compiler.js) to mock react native Component modules (react-native.mock.js)2 so Enzyme shallow renderer in your mocha unit tests can traverse

Super fast iteration compared to Jest, suitable for test-driven development.

Try it

Start test-driven development

npm ci
npm run testw

Start editing files in tests/* or src/*

About

Unit test your react-native components (.tsx) and redux saga all in Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published