Fix server e2e tests on CI #1

This commit is contained in:
Charles Bochet
2023-07-27 11:53:00 -07:00
parent 157e5b9a2e
commit 61205c2cb0
5 changed files with 7 additions and 7 deletions

View File

@ -7,6 +7,6 @@ REFRESH_TOKEN_EXPIRES_IN=30d
LOGIN_TOKEN_SECRET=secret_login_token
LOGIN_TOKEN_EXPIRES_IN=15m
FRONT_AUTH_CALLBACK_URL=http://localhost:3001/auth/callback
PG_DATABASE_URL=postgres://postgres:postgrespassword@localhost:5432/tests?connection_limit=1
PG_DATABASE_URL=postgres://postgres:postgrespassword@localhost:5432/test?connection_limit=1
STORAGE_TYPE=local
STORAGE_LOCAL_PATH=.local-storage

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": "./scripts/run-integration.sh",
"test:e2e": "./scripts/setenv.sh && ./scripts/run-integration.sh",
"test:e2e-ci": "./scripts/run-integration.sh",
"prisma:generate-client": "npx prisma generate --generator client && yarn prisma:generate-gql-select",
"prisma:generate-gql-select": "node scripts/generate-model-select-map.js",
"prisma:generate-nest-graphql": "npx prisma generate --generator nestgraphql",

View File

@ -1,9 +1,6 @@
#!/usr/bin/env bash
# src/run-integration.sh
DIR="$(cd "$(dirname "$0")" && pwd)"
source $DIR/setenv.sh
npx ts-node ./test/utils/check-db.ts
EXIT_CODE=$?