JavaScript Testing Basics with Jest

preview_player
Показать описание
An overview of unit testing with Jest, covering the main features it offers. This includes: initial setup and writing of first tests, watch mode usage, common expect statement matchers in use, test filters, coverage reports, and snapshots.

This video is also part of a playlist of Jest content:

00:00 - What we'll cover
03:06 - Project setup and watch mode
05:45 - Creating tests
10:55 - Red, Green example
13:43 - Expect statements
25:17 - Add test script and git
27:08 - Coverage
36:43 - Test run control utility methods
40:08 - Test filters
41:27 - What files coverage includes by default
46:07 - Snapshots
53:12 - Wrap-up

Follow Jimmy Cleveland's doings:

#jest #testing
Рекомендации по теме
Комментарии
Автор

The quality of your videos is amazing! With this pace, you will be the next big tech channel :)

Andrea-Giachetto
Автор

Pretty late to the party but in terms of not having to reopen the Coverage Report each time you run tests.
If you open the coverage index.html file with the VCCode LiveServer extension it will listen for changes and refresh. You'd have to open it initially but it will update in the browser when the file changes.

Awesome video. About to work my way through the rest of the playlist :)

Scetils
Автор

It's really pleasant to hear you explaining things. It's pretty nice to follow. Thanks!

pedro.britto
Автор

Testing is so underrated! It doesn't get that much attention than it should. 😭 People don't usually pick it up until they fully utilise the programming language either. I'm just picking up Jest now. I wasn't advised when to pick it up in my earlier time learning to program. Thank you for putting this video up. ❤ Much appreciated!

hyfydistro
Автор

Jimmy! Thank you for this great video.
Software Testing is undervalued but when done iteratively, it helps produce major testing criteria and also reduces issues by focusing on defects or unpleasant delays early in the Software Delivery Life Cycle. Along with a right Test Management tool, it may help to reduce a lot of time and effort to perform the many tasks involved in testing either with Jest, JUnit or any other Testrunners.

testquality
Автор

first video of yours that I saw. Subscribed! I am exited to see the rest of them

mpcabete
Автор

Love this video man! Very informative and explained in a way that's concise and easy to digest :)

christiantirado
Автор

Thanks for the video. Hope more advance video such as a real react app with Unit test

havefun
Автор

I love your channel man. very useful stuff here <3 thanks

simpleprogramming
Автор

Awesome video and great content quality! Love it :-D

srenschmidt
Автор

Awesome video! In the future could you do a jest series where you go through building a real world app using TDD with Jest and some form of Javascript (node, react) etc...? Just a thought. Thanks again

samueltorres
Автор

Great video, how does snapshot testing compare with using chromatic? Is there a use case to use both?

adithyakiransekar
Автор

Could you please make a video on promises, async and generators by taking real time example or REST API . Without using setTimeOut.. functions etc

santhoshraghavpidathala
Автор

Hey Swash, Followed your jest videos for creating my unit test coverage and it was very helpful. When I tried to run the same npm test in looper for CI, I am getting message - Ran all test suites but still not exiting from the test and next job is the pipeline is not kicked off. can you help mw with this.

harilovableterror
Автор

Which camera and microphone are you using? The quality is awesome

gager
Автор

Nice, but what about mocking function, modules, etc.?

MoraisSanFoo
Автор

Great video dude, love how you teach, would love you to set it up from scratch in your future video, am an SDET need to work more closely in supporting my devs in writing unit test and integration test, so need to bump up my understanding on this tool. Love Jest, can you also make video on Axios?

ayodejijoseph
Автор

Perfect🚀 one of the best
Could you please tell me the name of your font ?

AbdurrahmanHafez
Автор

Thank yo for this video. Very useful. Do you have a config file to enable ESM?

Goku
Автор

WOW Keanu Reeves " us code WOWWW..

amannegi