feat: Add env file existince check for test suite

This commit is contained in:
Faruk AYDIN
2023-09-14 12:25:09 +02:00
parent 224965b91e
commit 2661e7102f
4 changed files with 29 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
"build": "tsc && yarn copy-statics",
"build:watch": "nodemon --watch 'src/**/*.ts' --watch 'bin/**/*.ts' --exec yarn build --ext ts",
"start": "node dist/src/server.js",
"pretest": "APP_ENV=test ts-node ./test/setup/create-database.ts",
"pretest": "APP_ENV=test ts-node ./test/setup/prepare-test-env.ts",
"test": "APP_ENV=test ava",
"lint": "eslint . --ignore-path ../../.eslintignore",
"db:create": "ts-node ./bin/database/create.ts",