Testing JavaScript 2020 update

Kent C. Dodds
InstructorKent C. Dodds
Share this video with your friends

Social Share Links

Send Tweet
Published 3 years ago
Updated a month ago

[00:00] What is up, folks? I'm excited to tell you about a couple of the updates that we've made to testingjavascript.com. So let's get a look at it. Here is your regular testingjavascript.com content. One thing that I updated a while ago is now we have a KCD Discord server.

[00:15] So if you haven't already gotten this set up, I recommend that you do. This is a place where you can learn from other people and learn together. You can put together a KCD learning club. Definitely don't miss out on that. You wanna, yeah, don't miss that for sure.

[00:31] And then for each one of these repositories, for each one of the modules, I updated all of the dependencies in the master branch. So I haven't been able to get around to updating the videos that are impacted by some of these changes, but the impacts are actually pretty small. And so I just wanted to get the latest of everything to you. And then I added a couple of videos to kind of walk you through some of the changes that we made in some of these repos so that you can get that information as soon as possible while I'm working on doing a big revamp of testing javascript.com. So fundamentals, that's been updated but there's not really anything changed in there.

[01:09] It's all pretty much, well, it's exactly the same. Static analysis testing, that's just updates of all the dependencies, no code changes necessary there. JavaScript mocking, same story, no need to change any of the code in there, just updated all the dependencies. For configuring Jest, this one did have a couple of changes, things like changing from fire event to user event. There weren't actually any changes in configuring Jest itself.

[01:37] All of the Jest configuration stuff is the same. But some of the examples that I used are not using the screen export and stuff like that. So just like some small things that you can see in the Git diff for that update. And that's all been updated in master so you can see what master looks like. Nothing really impacted the actual project or even any of the videos for that one.

[02:01] And then testing React components, this probably had the biggest number of changes but pretty minimal impact. And I added a video for that one to show you the diff and a couple of the changes. And there's actually one new video in that because there's a new awesome package out available called MSW. And I wanted to show you how to use that for mocking HTTP requests. That one's really cool.

[02:24] So if you've watched all the videos, you probably don't need to watch any more than just here's what's changed and the MSW video. Outside of that, you'll be totally fine. It's pretty much no needed changes there. Pretty much the same with Cypress. There's one breaking change with Cypress Testing Library, and I explain that in the what's changed video here as well.

[02:47] It's very minimal impact to the actual code, but pretty big impact to the video, so I have to pretty much re-record all of those videos. And so, yeah, just watch the what's changed video in there and you should be good to go. The DOM testing library with every JS framework, there were a couple of little changes here and there. You can look at the diff. This one's more to show you what's possible and the fact that it doesn't matter what framework you're using, all of these principles apply.

[03:15] And so the changes there aren't really relevant because the testing library has implementations for pretty much all of the major frameworks and so you'll be using those anyway and they kind of gloss over these changes for you. So no harm there. Testing node backends, I just updated every dependency and everything still works exactly as it had before. So there's no needed changes here either. You don't need to rewatch any of those videos if you've watched them already.

[03:43] Everything else is exactly the same. So that's your update for testing JavaScript in 2020. Look forward to 2021. I have big plans for testing JavaScript. I wanted to get this to you as soon as possible so that you can follow along and know what the latest minor changes have been since the last time I did an update.

[04:03] I hope that you just totally love testingjavascript.com. And we'll see you around.

egghead
egghead
~ 32 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today