Mocha configuration for TypeScript and React Native
yarn add @sudoo/mocha-config-react-native --dev
# Or
npm install @sudoo/mocha-config-react-native --save-dev
Run the following command
mocha := node_modules/.bin/mocha
mocha-config := node_modules/@sudoo/mocha-config-react-native/.mocharc.json
$(mocha) --config $(mocha-config)