学习代码覆盖率:博客文章系列的同伴代码仓库:

学习代码覆盖率博客文章系列的配套代码存储库:建立$ yarn global add typescript@2 $ git clone git@github.com:amarnus/learning-code-coverage.git $ cd learning-code-coverage/ $ yarn用法# compile $ tsc # stats $ node bin/stats.js # instrument $ node bin/instrument.js > source.instrumented.js # test $ npm test # visualize $ genhtml -o html/ ./lcov.info
zip
learning-code-coverage-master.zip 预估大小:14个文件
folder
learning-code-coverage-master 文件夹
file
source.js 1KB
file
.gitignore 31B
file
tsconfig.json 131B
file
README.md 614B
folder
test 文件夹
file
index.test.js 828B
file
lcov.info 137B
file
package.json 559B
folder
src 文件夹
file
stats.ts 549B
file
compiler.ts 310B
file
instrument-lib.ts 1KB
file
utils.ts 2KB
file
instrument.ts 98B
file
reporter.js 406B
file
yarn.lock 47KB
zip 文件大小:19.78KB