Skip to content

Commit

Permalink
ci: update repo for Husky pre-commit support
Browse files Browse the repository at this point in the history
This commit also includes an update to reduce the testing
expectations to 70%. This should be updated once the
following issue has been resolved.

#9

Changes to be committed:
new file:   .husky/pre-commit
modified:   web-test-runner.config.mjs
  • Loading branch information
blackfalcon authored and jason-capsule42 committed Aug 9, 2023
1 parent 32e9038 commit f2d347e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

./node_modules/.bin/npm-run-all preCommit test linters postinstall
8 changes: 4 additions & 4 deletions web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ export default {
nodeResolve: true,
coverageConfig: {
threshold: {
statements: 80,
branches: 80,
functions: 80,
lines: 80
statements: 70,
branches: 70,
functions: 70,
lines: 70
}
}
};

0 comments on commit f2d347e

Please sign in to comment.