Skip to content

Commit

Permalink
COMMERCE-6005 Added coverage-specific script command and config
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmarcobrunialti authored and brianchandotcom committed Mar 24, 2021
1 parent dc79f07 commit 3edd6b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/apps/commerce/commerce-frontend-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@
"faker": "^5.1.0"
},
"jest": {
"collectCoverageFrom": [
"!<rootDir>/node_modules/",
"<rootDir>/src/**/components/**/*.js",
"<rootDir>/src/**/utilities/**/*.js"
],
"testPathIgnorePatterns": [
"<rootDir>/test/dev/",
"<rootDir>/test/utils"
"<rootDir>/test/utils/"
]
},
"main": "index.js",
Expand All @@ -42,6 +47,7 @@
"scripts": {
"build": "liferay-npm-scripts build",
"checkFormat": "liferay-npm-scripts check",
"coverage": "liferay-npm-scripts test --coverage --silent --verbose",
"format": "liferay-npm-scripts format",
"test": "liferay-npm-scripts test",
"watch": "liferay-npm-scripts webpack --watch"
Expand Down

0 comments on commit 3edd6b2

Please sign in to comment.