← Back to courses
SQA and Testing
JavaScript Unit Testing with Jest
One week to testing your own functions
A one-week classroom course on the introduction section of the Jest documentation: getting started, using matchers, testing asynchronous code, setup and teardown, and mock functions. This course prepares for no exam.
5Modules
IntermediateLevel
1 weekDuration
COURSE THUMBNAIL
What you will be able to do
Write unit tests with the right matcher
Test promises and async functions
Replace a dependency with a mock
Course outline
01
Getting started; running Jest from the command line
02
Using matchers
03
Testing asynchronous code
04
Setup and teardown
05
Mock functions
Tools you will use
JestNode.jsVisual Studio Code
What you need
Basic JavaScript


