Skip to content

zinuhe/javascript-unit-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-unit-test

Unit testing using Jest

pnpm init

Locally in your project.

pnpm add -D typescript
pnpm add -D ts-node

Or globally with TypeScript.

pnpm add -g typescript
pnpm add -g ts-node

Depending on configuration, you may also need these

pnpm add -D tslib @types/node

Run

npx ts-node ./main.ts

Or

pnpm dev

Installing Jest

pnpm add --save-dev jest

Example of a structure

https://github.com/nodejs/examples

About

Unit testing using Jest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors