Skip to content

Commit

Permalink
Refactor/parameterize mailer, add a test, set up test db handling, se…
Browse files Browse the repository at this point in the history
…t up dependency mocking, reorganize tests
  • Loading branch information
francisli committed Mar 17, 2024
1 parent 7f4dd6e commit 433d9db
Show file tree
Hide file tree
Showing 16 changed files with 3,351 additions and 114 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Run ESLint
run: npm run lint --workspaces
- name: Initialize database, generate Prisma client
run: cd server; npx prisma migrate reset --force
run: cd server; npm run test:resetdb
env:
DATABASE_URL: postgresql://postgres@db/app
- name: Run Tests
Expand Down
14 changes: 8 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ services:
command: bash -l -c "npm install && npm start"
environment:
- DATABASE_URL=postgresql://postgres@db/app
- EMAIL_USER=# Provide your email username here
- EMAIL_PASS=# Provide your email password here
- SMTP_HOST=mail
- SMTP_PORT=1025
- SMTP_USER=
- SMTP_PASS=
ports:
- 5000:5000 #vite
- 5100:5100 #fastify
- 5555:5555 #prismaORM
- 6006:6006 #storybook
- 5000:5000 # vite
- 5100:5100 # fastify
- 5555:5555 # prisma
- 6006:6006 # storybook
depends_on:
- db
- mail
Expand Down
Loading

0 comments on commit 433d9db

Please sign in to comment.