Skip to content

rudijs/node-typescript-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-typescript-seed-2

NodeJS Typescript Starter

Initial code set up for:

  • typescript compilation
  • testing with code coverage using Jest
  • vscode debugger configured for typescript

Usage

  • Typescript installed locally (not globally) so we use an npm script to run the compiler
  • npm run tsc -- -w

Tests

  • Single run testing, also this is your basic CI/CD script for testing. If this exits with a 0, then tests are good (including code coverage).
  • npm test
  • Development testing mode (watch all files or a single file)
  • npm run test:watch
  • npm run test -- --coverage false src/demo.test.ts --watch
  • View the HTML coverage report in a Brave browser (change to suit your browser)
  • npm run view:coverage
  • Blog post helping with Jest setup

About

NodeJS Typescript Starter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •