]> source.dussan.org Git - sonarqube.git/commitdiff
add --passWithNoTests to precommit jest configuration
authorStas Vilchik <stas.vilchik@sonarsource.com>
Wed, 21 Feb 2018 13:22:49 +0000 (14:22 +0100)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Tue, 27 Feb 2018 12:14:54 +0000 (13:14 +0100)
server/sonar-web/package.json

index da0674593e14bc669585a063b2fb4967a1d5a320..56658e361e85d3318fec7330b8c8170ad79470ed 100644 (file)
     "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"
+      ]
     }
   }
 }