Overview

Testing is a critical part of the URL Shortener API to ensure reliability, scalability, and correctness before deployment. The objective is to verify that all application components behave as expected under normal usage, edge cases, and high-load scenarios.

This strategy covers:

Testing objectives

Testing Tools

Tool Purpose
Jest Unit tests + collision/determinism tests
Node.js Test Runtime
Supertest / Postman API endpoint testing
Browser Manual redirect verification
MongoDB Atlas / local MongoDB Database validation, unique index enforcement, integration testing

Test architecture (project layout)