vicboma1 / typescript-template-ts-jest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript-template-ts-jest

Install

typescript    https://www.typescriptlang.org/
Jest Runner   https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner
vscode-icons  https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons
ts-jest       https://github.com/kulshekhar/ts-jest 

Command line

npm install -g typescript
npm install --save-dev jest
npm i @types/jest

Prerequisites       npm i -D jest typescript	
Installing          npm i -D ts-jest @types/jest	
Creating config     npx ts-jest config:init	

Compile all         tsc
Compile file        tsc '{path}/foo.ts'
Run file            npx node '{path}/foo.ts'
Compile/Run (fly)   npx ts-node '{path}/foo.ts'
Running tests       npx jest	

About

License:MIT License


Languages

Language:TypeScript 81.8%Language:JavaScript 18.2%