Testing JavaScript with Jest

Here are all the Egghead.io lessons about testing with Jest! http://facebook.github.io/jest (https://kcd.im/egghead-jest)

Watch User Created Playlist (6)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Test JavaScript with Jest

P

Add Babel Integration with Jest

P

Track project code coverage with Jest

P

Use Jest's Interactive Watch Mode

P

Use Jest's Snapshot Testing Feature

P

Use Test Driven Development

P
js tutorial about Test JavaScript with Jest

Test JavaScript with Jest

4:04 js PRO

Let's learn how to unit test your JavaScript with Jest, a JavaScript unit testing framework from Facebook. We'll install and optimize Jest for this project and see how quick and easy it is to get things going with Jest.

js tutorial about Add Babel Integration with Jest

Add Babel Integration with Jest

1:42 js PRO

Jest will default to utilize babel when your node_modules contains babel-jest. Depending on your environment this may already be the case! In this quick lesson, find out why that is and how to ensure that continues to work.

js tutorial about Track project code coverage with Jest

Track project code coverage with Jest

3:07 js PRO

Jest comes pre-packaged with the ability to track code coverage for the modules you're testing, but it takes a little extra work to make it track untested files as well. Let's look at what Jest can do for you, what you have to do yourself, and how to setup code coverage thresholds so you can work to improving the code coverage numbers for your projects.

js tutorial about Use Jest's Interactive Watch Mode

Use Jest's Interactive Watch Mode

3:17 js PRO

Jest ships with a pretty amazing interactive watch mode which you can initiate with jest --watch. Let's learn about the bits of interactivity and how this can really improve your workflow.

js tutorial about Use Jest's Snapshot Testing Feature

Use Jest's Snapshot Testing Feature

3:41 js PRO

Often when testing, you use the actual result to create your assertion and have to manually update it as you make changes to the feature. With Jest snapshot testing, you can let Jest do this part for you and write more tests and features faster and with more confidence. Let's learn about how you can use Jest snapshot testing to improve your own workflow.

js tutorial about Use Test Driven Development

Use Test Driven Development

3:19 js PRO

In this lesson, we'll write a brand new function called arrayify using the Test Driven Development workflow of red-green-refactor. Test Driven Development (aka TDD) is great because it helps you focus on one task at a time and when you're all finished, you can refactor or add features with confidence because the test suite acts as a safety net. In this lesson we're using the amazing Jest testing framework.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?