Skip to content

Commit

Permalink
chore: add nyc test coverage
Browse files Browse the repository at this point in the history
docs: add coverage
  • Loading branch information
zhangshichun committed Jul 9, 2023
1 parent ba92172 commit 1869983
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
dist/**

yarn.lock
yarn.lock

.nyc_output
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
> 像使用 `lodash.js` 一样方便地操控树结构
![](https://pic.zhangshichun.top/pic/20230709-01.png)

## Install (安装)

```shell
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"build:umd": "cross-env NODE_ENV=production rollup -c rollup.umd.config.js",
"build:esm": "cross-env NODE_ENV=production rollup -c rollup.esm.config.js",
"postbuild": "tsc --emitDeclarationOnly --declaration --project ts.config.json --outDir dist/esm",
"test": "cross-env TS_NODE_PROJECT='test/tsconfig.test.json' mocha"
"test": "cross-env TS_NODE_PROJECT='test/tsconfig.test.json' mocha",
"test-with-coverage": "cross-env TS_NODE_PROJECT='test/tsconfig.test.json' nyc --reporter=text mocha"
},
"files": [
"dist"
Expand All @@ -40,10 +41,12 @@
"@types/node": "^20.3.3",
"@types/sinon": "^10.0.15",
"chai": "^4.3.7",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"esbuild": "^0.14.43",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"rollup": "^2.68.0",
"rollup-plugin-esbuild": "^4.9.1",
"rollup-plugin-livereload": "^2.0.5",
Expand Down

0 comments on commit 1869983

Please sign in to comment.