Skip to content

Commit

Permalink
Install and configure pactum for e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mascam97 committed Jul 5, 2022
1 parent 7e48e7a commit 3db3a62
Show file tree
Hide file tree
Showing 6 changed files with 350 additions and 11 deletions.
9 changes: 9 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
API_KEY=123abc
JWT_SECRET=abc123

MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=root
MONGO_DB=nestjs-store-test
MONGO_PORT=27018
MONGO_HOST=localhost
MONGO_CONNECTION=mongodb
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ services:
- 27017:27017
volumes:
- ./mongo_data:/data/db
mongo-test:
image: mongo:4.4
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27018:27017
express:
image: mongo-express
restart: always
Expand Down
Loading

0 comments on commit 3db3a62

Please sign in to comment.