Jest Testing

Jest is a JavaScript testing framework that is often used to test React Native apps. You can also refer to the tutorial on the Jest website.

Creating Tests

The output of youi-tv init includes the basic setup your application needs to work with Jest. Tests are JavaScript files located under <project name>/__tests__; for example <MyApp>/__tests__.

To create a new test, use Jest to create a JavaScript file and your test cases.

Troubleshooting Jest

If you have issues launching Jest, try clearing the cache:

yarn test – --no-cache