mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 05:18:31 +03:00
new server test with precommit hook to secure .env files, set up CI environment (#5)
* new server test with precommit hook to secure .env files, set up CI environment (#3) * [TESTS] added all registered routes to api server test * [WIP] abstracting config to env where it makes sense, refactoring elsewhere, adding more tests * [WIP] fixed tests so they fail as expected * [WIP] * [DEBUG] fixed issues with the env configuration, added correct tests * [MISC] env didn't get readded on last precommit * [TESTS] added longer wait time for server as sometimtimes tests fail arbitrarily
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
"test-watch": "ava --watch",
|
||||
"test": "ava --verbose"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "yarn test && yarn lint && travis encrypt-file .env --add --force && git add ."
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/developit/express-es6-rest-api.git"
|
||||
@@ -21,6 +26,7 @@
|
||||
"body-parser": "^1.13.3",
|
||||
"compression": "^1.5.2",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^6.1.0",
|
||||
"express": "^4.13.3",
|
||||
"express-graphql": "^0.6.12",
|
||||
"googleapis": "^32.0.0",
|
||||
@@ -39,6 +45,7 @@
|
||||
"@babel/preset-env": "^7.1.0",
|
||||
"@babel/register": "^7.0.0",
|
||||
"ava": "1.0.0-beta.8",
|
||||
"husky": "^1.2.0",
|
||||
"nodemon": "1.18.7",
|
||||
"standard": "^12.0.1"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user