Skip to content

Commit

Permalink
chore: add cobertura reporter to test script
Browse files Browse the repository at this point in the history
  • Loading branch information
bacebu4 committed Nov 19, 2023
1 parent 23eda6c commit 41b1a2e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
cobertura-coverage.xml
9 changes: 8 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
"./index.js"
],
"scripts": {
"test": "node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=@reporters/github --test-reporter-destination=stdout --test ./tests/index.test.js"
"test": "node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=cobertura --test-reporter-destination=cobertura-coverage.xml --test ./tests/index.test.js"
},
"main": "index.js",
"author": "Vasilii Krasikov",
"license": "MIT",
"devDependencies": {
"@reporters/github": "^1.5.3"
"@reporters/github": "^1.5.3",
"cobertura": "^0.0.1-beta.2"
}
}

0 comments on commit 41b1a2e

Please sign in to comment.