Skip to content

Commit

Permalink
chore: add .env.test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Jan 27, 2025
1 parent d4dd503 commit 240bc76
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions backend/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
APP_KEY=testtesttesttest
PORT=1337
SERVER_PATH=test
API_ENV=test
NODE_ENV=test
LOG_LEVEL=info
URI_WHITELIST=test
ACCESS_TOKEN_SECRET=test
REFRESH_TOKEN_SECRET=test
SESSION_SECRET=test
BL_API_URI=test
CLIENT_URI=test
MONGODB_URI=test
DIBS_SECRET_KEY=test
DIBS_URI=test
FACEBOOK_CLIENT_ID=test
FACEBOOK_SECRET=test
GOOGLE_CLIENT_ID=test
GOOGLE_SECRET=test
SENDGRID_API_KEY=SG.test
TWILIO_SMS_AUTH_TOKEN=test
TWILIO_SMS_SID=ACtest
BRING_API_KEY=test
BRING_API_ID=[email protected]
SENTRY_AUTH_TOKEN=test
2 changes: 1 addition & 1 deletion backend/bin/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const IMPORTER = (filePath: string) => {
new Ignitor(APP_ROOT, { importer: IMPORTER })
.tap((app) => {
app.booting(async () => {
// await import("#start/env");
await import("#start/env");
});
app.listen("SIGTERM", () => app.terminate());
app.listenIf(app.managedByPm2, "SIGINT", () => app.terminate());
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "node ace serve --watch",
"typecheck": "pnpm exec tsc --noEmit",
"test": "tsx bin/test",
"test": "NODE_ENV=test tsx bin/test",
"build": "node ace build",
"start": "ENV_PATH=../ node build/bin/server.js"
},
Expand Down

0 comments on commit 240bc76

Please sign in to comment.