From 9faf55ede63bc596d1d1678085dc026ffb14d99d Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Tue, 5 Jan 2021 13:37:35 -0600 Subject: Run test script as part of the pre-commit hook Now that we have added more unit testing, it will be beneficial to run the unit test script prior to check in. Eventually, we will want this to be part of the CI build process since Git pre-hooks can be avoided. Signed-off-by: Derick Montague Change-Id: I59aad81a470176d2f6a5afeb130661c642f4d259 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 38f56ec6..e020bb33 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "node": ">=12.14.1" }, "gitHooks": { - "pre-commit": "lint-staged" + "pre-commit": "lint-staged && vue-cli-service test:unit" }, "lint-staged": { "*.{js,vue}": [ -- cgit v1.2.3