This repository contains the code for the blog post A Complete Guide On TypeScript Unit Testing.
The src/ directory contains the TypeScript code for the functions that we want to test. And the tests/ directory contains the tests for the functions.
To install the dependencies, run the following command:
pnpm install
To run the tests, run the following command:
pnpm test
The project contains a workflow file for GitHub Actions at .github/workflows/unit-tests.yaml. The workflow runs the tests on every push or pull request to the main branch.