Instructor: In this section, we're gonna dive
right into our first technical topic which is testing.
So we're going to learn about testing
of React and Redux applications.
Now, I've taught testing across a variety
of different frameworks, libraries and languages.
And over time I've come to realize that doing a lecture
about the theory of testing tends to not be super effective.
So rather than having a long discussion
about what testing is and how we do it
and some of the theory behind it,
we're going to instead dive right in
to some very practical examples.
So in this section,
we're going to generate a new React project
and then we'll immediately start writing
some tests for it inside the next video.
So to get started, I'm gonna open up my command line
and I'm gonna check to see if I have a command line tool
called create-react-app already installed
on my local system.
To check to see if I do,
I'll simply write out create-react-app
with dashes between each word and then I'll hit enter.
Now, you'll notice that I get
a little popup like this right here.
If you see this text on the screen
that looks just like mine, then you're good to go.
But if you see a message
that says create-react-app command not found,
or some error message like that,
then you need to very quickly install create-react-app.
So if you need to install it, you can run the command
npm install -g create-react-app like so.
Let's go ahead and run that command and let it do its thing.
Then after you have successfully installed create-react-app,
we can generate a new project
by running the command create-react-app
and then the name of our new project.
The first project that we're going to be work on
is focused on testing and so we're gonna name
this project after that.
We'll say create-react-app testing like so.
Then you'll hit enter,
that's going to generate a new React project for me
and start installing some dependencies.
So we're gonna use this new project to learn a lot more
about testing the React and Redux application.
So let's take a quick pause right here.
We'll come back in the next section
after these dependencies have been installed
and we'll start talking about how we're gonna test this app.