This course has been updated! We now recommend you take the Intermediate React, v5 course.
Transcript from the "Creating a Jest CLI Script" Lesson
[00:00:00]
>> Brian: So we've been running our jest with npx. The best way to do this is actually go into your package.json. Here, I have test. Let's just make that jest --silent, okay? And then we'll add another one called test:update. And we'll input that -u on that. So now instead of doing, clear, npm run test,
[00:00:29]
>> Brian: That'll run jest for us. In fact, test is special one, so you can actually go as far as npm t. It'll actually run test for you.