Skip to content

Commit

Permalink
test: add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
inigomarquinez committed Oct 4, 2023
1 parent e495fe1 commit 31b2a1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ yarn-error.log*
license-report.md

.idea
.eslintcache
.eslintcache

# tests coverage
coverage
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
"build": "rollup -c",
"prepare": "run-s build && husky install",
"test": "npx @guidesmiths/license-checker --failOn AGPL --outputFileName License-report --errorReportFileName License-error | run-s test:unit test:lint test:build",
"coverage": "npm run test:unit -- --coverage",
"test:build": "run-s build",
"test:lint": "eslint src --ext .js,.jsx --config .eslintrc --ignore-path .eslintignore --cache",
"eslint:fix": "eslint . --ext .js,.jsx --fix",
"lint": "npm run test:lint",
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom --passWithNoTests",
"test:watch": "react-scripts test --env=jsdom",
"eslint:fix": "eslint . --ext .js,.jsx --fix",
"lint": "npm run test:lint",
"predeploy": "cd example && npm install && npm run build",
"deploy": "gh-pages -d example/build",
"release:patch": "git tag -l | xargs git tag -d && changelog -p && git add CHANGELOG.md && git commit -m 'chore: updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",
Expand Down

0 comments on commit 31b2a1b

Please sign in to comment.