Helloworld
console.log('hello world')
bash运行
node helloworld/index.js# 或node helloworld
Nodemon自动重启
监视代码修改,自动重启
npm i nodemon -gnodemon helloworld
Vscode调试debug
单元测试 - Jest
安装jest库
npm install jest -g
在tests文件夹中创建index.spec.ts
test("Hello world", () => {require('../index')});
运行
jest helloworld
