Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 628 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 628 Bytes

tdd-js-template

项目安装

项目需要 nodejs v8.0 及以上版本运行,添加了 Babeljs ,所以可以使用 classarrow functionasync 等高级语法。测试使用了 Mochajs 作为测试库,为不增加复杂性,使用 nodejs 自带的断言 assert,可根据开发者自己喜好更换。

进入目录后安装项目依赖:

npm install
# 或者
yarn

运行测试:

npm test
# 或者
yarn test

# watch 模式
npm run test
# 或者
yarn run test:watch