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 App!
You have completed Using Create React App!
Preview
Create React App has built-in scripts available for running tests, building your app for production, and ejecting out of its default setup. In this video, we'll dive deeper into the optional commands: build, test and eject.
Resources
Related Content
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
ejecting out of the default
Create React App set up.
0:00
So in this video,
0:00
we'll dive deeper into the optional
commands build, test, and eject.
0:01
You learn that the Jest testing framework
is already configured when you use
0:06
Create React App.
0:10
Jest is used for writing unit tests
of your components and logic.
0:11
You run unit tests on
the individual units or
0:15
components of the app to make
sure that they work as intended.
0:18
If you name your files using
a filename convention like .spec.js, or
0:21
in this case ,.test.js, or if you place
your test files inside a special test
0:26
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