You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
524 B
24 lines
524 B
3 years ago
|
{
|
||
|
"name": "prevent-push-when-skipping-cypress-tests",
|
||
|
"version": "1.0.0",
|
||
|
"description": "",
|
||
|
"main": "server.js",
|
||
|
"scripts": {
|
||
|
"dev": "node .",
|
||
|
"cy:run": "cypress run",
|
||
|
"test": "start-test dev 3000 cy:run"
|
||
|
},
|
||
|
"husky": {
|
||
|
"hooks": {
|
||
|
"pre-push": "grep -Rvzq -e '.skip' -e '.only' cypress/integration && npm run test"
|
||
|
}
|
||
|
},
|
||
|
"author": "peter.babic",
|
||
|
"license": "MIT",
|
||
|
"devDependencies": {
|
||
|
"cypress": "^6.0.1",
|
||
|
"husky": "^4.3.0",
|
||
|
"start-server-and-test": "^1.11.6"
|
||
|
}
|
||
|
}
|