Skip to content

Commit

Permalink
other: Add tests coverage thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
olexandr-mazepa committed Nov 21, 2024
1 parent 7f96083 commit bd5f459
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ build
./test.js
.coverage/
.nvmrc
.DS_Store
9 changes: 9 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"check-coverage": true,
"reporter":"lcov",
"report-dir":".coverage",
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"build:release": "webpack --config ./webpack/webpack.release.config.js --progress --color && npm run build:prepublish",
"build:prepublish": "node ./SetupPackage.js",
"start": "webpack --watch --config ./webpack/webpack.dev.config.js --progress --color",
"test": "multi='dot=- xunit=./results.xml' nyc --reporter=text-summary --reporter=lcov --report-dir=.coverage mocha -t 10000 -R mocha-multi -r ts-node/register test/*.test.ts",
"test:debug": "multi='dot=- xunit=./results.xml' nyc --reporter=text-summary --reporter=lcov --report-dir=.coverage mocha --inspect-brk -t 10000 -R mocha-multi -r ts-node/register test/*.test.ts",
"test": "multi='dot=- xunit=./results.xml' nyc mocha -t 10000 -R mocha-multi -r ts-node/register test/*.test.ts",
"test:debug": "multi='dot=- mocha --inspect-brk -t 10000 -R mocha-multi -r ts-node/register test/*.test.ts",
"test:watch": "mocha -r ts-node/register -w -R dot test/*.test.ts",
"docs": "typedoc --tsconfig ./tsconfig.json --plugin typedoc-plugin-markdown",
"lint": "eslint . --ext .ts",
Expand Down

0 comments on commit bd5f459

Please sign in to comment.