Skip to content

Commit 15eedfe

Browse files
author
Larry Botha
committed
test(svelte-check): run during tests and on pre-push
1 parent b4e3782 commit 15eedfe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

husky.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
hooks: {
33
'pre-commit': 'npm run format',
4-
'pre-push': 'npm run test',
4+
'pre-push': 'npm test',
55
'commit-msg':
66
'commitlint -E HUSKY_GIT_PARAMS --help-url="https://github.com/tjinauyeung/svelte-forms-lib/#commit-message-conventions"',
77
},

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"start": "rollup -c -w rollup.config.js",
88
"build": "cross-env NODE_ENV=production && rollup -c rollup.config.js",
99
"prepare": "npm run build",
10-
"test": "jest",
10+
"test": "jest && npm run svelte-check",
1111
"test:watch": "jest --watchAll",
12+
"svelte-check:watch": "svelte-check --watch --output=human-verbose",
13+
"svelte-check": "svelte-check --fail-on-warnings --output=human-verbose",
1214
"format": "prettier --write lib/**/*.{js,svelte}",
1315
"commit": "git-cz"
1416
},

0 commit comments

Comments
 (0)