Testing React Native Apps ? WtfReactNativeTesting

github logo ・1 min read

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

twitter logo DISCUSS
Classic DEV Post from Apr 30 '18

How JavaScript works

How JavaScript works

tuantvk profile image
js, python. C0de h4v3 fun

Hey there reader...

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❀️