js coverage testing_testing

js coverage testing

js 测试覆盖率 jest 单元测试 集成测试



js coverage testing

测试覆盖率

js coverage testing_testing_02

istanbul 伊斯坦堡/伊斯坦布尔

js coverage testing_js_03

jest coverage

js coverage testing_testing

单元测试

集成测试

jest test

jest

$ yarn add -D jest
# OR
$ npm i -D jest
# test
$ yarn test

$ npm test
# $ npm run test


Jest CLI


$ yarn global add jest
# OR
$ npm i -g jest
# find-the-symmetric-difference.js
# find-the-symmetric-difference.test.js
$ jest find-the-symmetric-difference --notify --cnotallow=config.json

$ jest find-the-symmetric-difference --notify --cnotallow=config.json
# ❌ bug
# Error: Can't find a root directory while resolving a config file path.
# Provided path to resolve: config.json

$ jest find-the-symmetric-difference --notify
# $ jest ./find-the-symmetric-difference --notify


refs






©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!



xgqfrms