Skip to content

dcodesdev/typescript-unit-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript unit testing with Jest

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.

Installing dependencies

To install the dependencies, run the following command:

pnpm install

Running the tests

To run the tests, run the following command:

pnpm test

CI/CD

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published