DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Testing React Native Apps ? WtfReactNativeTesting
tuantvk
tuantvk

Posted on

Testing React Native Apps ? WtfReactNativeTesting

What are we unit testing exactly ? 🚨

We're using "unit testing" to refer to tests of functions and plain JavaScript objects, independent of the React Native framework. This means that we aren't testing any components that rely on React Native.

For example, a unit could be individual methods and functions in classes or really any small pieces of functionality. We mock out dependencies in these tests so that we can test individual methods and functions in isolation.

These test are written using testing frameworks and for this article i will be using Jest, javascript testing framework together with Enzyme and React Native Testing Library.

View all on my repo WtfReactNativeTesting

Top comments (0)

Image description

Join the One Year Club

You can earn this badge by being a registered member of the DEV Community for at least one year. Create an account and get started today.