From: Stas Vilchik Date: Wed, 21 Feb 2018 13:22:49 +0000 (+0100) Subject: add --passWithNoTests to precommit jest configuration X-Git-Tag: 7.5~1628 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=87ecef1b3768eaa980083c466a5adf25e5748d44;p=sonarqube.git add --passWithNoTests to precommit jest configuration --- diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index da0674593e1..56658e361e8 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -168,7 +168,12 @@ "gitDir": "../../", "linters": { "*.{css,json}": ["prettier --write", "git add"], - "*.{js,ts,tsx}": ["eslint", "jest --bail --findRelatedTests", "prettier --write", "git add"] + "*.{js,ts,tsx}": [ + "eslint", + "jest --bail --passWithNoTests --findRelatedTests", + "prettier --write", + "git add" + ] } } }