Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Using Create React Native App!
You have completed Using Create React Native App!
Preview
Create React Native App has built-in scripts available for running tests and ejecting out of the default configuration.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
So in this video, we'll dive deeper into
the optional commands, test and eject.
0:00
The Jest testing framework works right out
of the box in create-react-native-app.
0:03
Jest is used for writing unit
test on the individual units or
0:08
components of your app to make
sure that they work as intended.
0:11
So if you name your file using
a filename convention like .spec.js,
0:15
or in this case .test.js, or
if you place your test file inside
0:20
a special test folder, Jest will
find those files and run your tests.
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up