Skip to content

Mica4DEV/typescript-service-with-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goal of this repository

Simple steps to setup a typescript project from scratch.

Typescript project setup

  • npm init
  • git init
  • Describe Node.js version used within .nvmrc
  • Install Jest dependency for testing
    • Follow documentation (add babel.config.js)
    • Install dependencies
  • Add script to run tests with yarn test
  • Add simple test sum.spec.ts
  • Add test using Jest Mock over an external library (Axios) in http-service.spec.ts

About

Example of usage of typescript and Jest tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published