add husky

This commit is contained in:
Kirill Ivlev 2024-11-11 18:25:59 +04:00
parent 41388c035b
commit 5b3bc5d3b8
2 changed files with 3 additions and 4 deletions

1
.husky/pre-commit Normal file
View file

@ -0,0 +1 @@
npm test

View file

@ -18,7 +18,8 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"prepare": "husky"
},
"dependencies": {
"@nestjs/axios": "3.0.1",
@ -90,8 +91,5 @@
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"hooks": {
"pre-commit": "npm run test"
}
}