Module: Unit Testing

Unit testing is a fundamental practice in software development where individual units of code (typically functions, methods, or classes) are tested in isolation to verify they work as expected. This module covers unit testing principles and practical implementation using Jest, a popular testing framework for TypeScript and JavaScript applications.

Learning Outcomes

Fundamental Unit Testing

Readings

Introduction to Unit Testing

Introduction to Unit Testing

Jest Getting Started

Jest Getting Started

Fundamentals - Jest Testing

TypeScript Fundamentals - Jest Testing

Jest Crash Course

Jest Crash Course

The Practical Test Pyramid

The Practical Test Pyramid

JavaScript & Node.js Testing Best Practices

JavaScript & Node.js Testing Best Practices

Test-Driven Development

Test-Driven Development

Experiential Learning

EUT01: Basic Function Testing

Basic Function Testing

EUT02: Basic Class Testing

Basic Class Testing

EUT03: Unit Testing to Evaluate LLM-Generated Code

Unit Testing to Evaluate LLM-Generated Code