W06 Learning Activity: Testing
Overview
Welcome to Week 06! This lesson you are going to learn how to write unit tests using the Jest framework. You will also continue to work on your final project.
Topics for this lesson:
- Why Testing?
- Testing Frameworks for JavaScript
- Writing Unit Tests with Jest
Learning Material
Resources for this lesson are accessible to you in this repository
Why Testing?
JavaScript Testing Frameworks
This semester you will focus on Jest, but you should be aware that there are other popular frameworks including: Mocha, Jasmine, and Ava.
Writing Unit Tests with Jest
- Getting Started
- Jest Tutorial for Beginners: Getting Started With JavaScript Testing
- Debug Jest test files (look at Leigh Mathieson's answer)
- (OPTIONAL) How to add unit testing to express using jest
- Jest with Mockingoose Student Tutorial
- Using Jest with MongoDb
- Supertest(Library to use with another testing framework, for testing APIs.)
Submission
When you have completed all of the learning activities for this week, you will return to Canvas and submit the associated quiz there.
Other Links:
- Return to: Week Overview | Course Home