Skip to content

lpolon/typescript-jest-node-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minimal node jest typescript template

Install

npm i

How to use

just put whatever you need on index.ts and run with

npm run dev

or create whatever folder and files you need and its tests. For instance:

example
|_main.ts
|_main.test.ts

and run

npm t

Niceties and opinions

jest enviroment

  • jest-watch-typeahead let you filter tests by filename or test name
  • use absolute imports from src in test files

typescript

  • global.d.ts overrides .reduce() type, removing unecessary overloads that makes it harder to check type inferrence correctness while writing the callback.

About

minimal node jest typescript template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published