We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd95f68 commit 3fc3b25Copy full SHA for 3fc3b25
2 files changed
extensions/ql-vscode/package.json
@@ -1170,7 +1170,7 @@
1170
"husky": {
1171
"hooks": {
1172
"pre-commit": "npm run format-staged",
1173
- "pre-push": "npm run lint"
+ "pre-push": "npm run lint && scripts/forbid-mocha-only"
1174
}
1175
},
1176
"lint-staged": {
extensions/ql-vscode/scripts/forbid-mocha-only
@@ -0,0 +1,6 @@
1
+if grep -rq --include '*.test.ts' 'it.only\|describe.only' './test' './src'; then
2
+ echo 'There is a .only() in the tests. Please remove it.'
3
+ exit 1;
4
+else
5
+ exit 0;
6
+fi
0 commit comments