Instructor: All right, my friends,
we've wrapped up our first testing application here
and I think we've learned a whole lot along the way.
There's definitely a lot of things
that we could review inside this section
but probably the most important thing I wanna tell you about
is one of the topics we discussed later on.
So the idea of Unit Tests first integration tests.
At the start of this application,
we were first writing out a ton of unit tests
inside of our code base.
Now, there's nothing wrong with doing Unit Tests,
It's definitely a completely valid way of testing a product.
However, I'm gonna make the claim,
based on my personal experience of working
on many different applications,
that we tend to get a little bit more value
out of testing when we make use of integration tests.
So even though I showed you how to say,
test an action creator and test a reducer,
I'm not entirely sure, personally,
that that's really the best use of your time
when you go to put together tests.
Now to put together a very complete course
on React and Redux testing,
of course, I showed you how to do that stuff
so that if you want to, you absolutely can.
There are very serious enterprise products out there
where they want to put in as many Unit Tests as possible.
And so in having knowledge of testing reducers
and action creators one at a time is valuable,
but if you are introducing testing
to a personal project or a small professional project,
I really recommend you try tending towards
the integration test side of the spectrum a little bit more.
You simply get more bang for your buck.
Or in other words,
you are testing or securing more lines
of code with fewer tests
and you'll get some better signals
when something inside your application breaks
because these integration tests really address
how all the different components,
reducers, and action creators fit together.
Okay, so just wanna throw that little note in there.
Again, I'd say try to focus towards this end
of the spectrum as you're getting started with testing.
So I think we've learned a lot with this first application
but we still have a lot more to cover.
So let's take a quick break
and continue in the next section.