Skip to content

Commit 85ca5cc

Browse files
committed
upd docker compose in tests
1 parent 4187ada commit 85ca5cc

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docker-compose.test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
depends_on:
1515
- mongodb
1616
- rabbitmq
17-
- accounting
17+
# - accounting
1818
stdin_open: true
1919
tty: true
2020

@@ -28,6 +28,7 @@ services:
2828
dockerfile: "./docker/Dockerfile.dev"
2929
context: .
3030
depends_on:
31+
- rabbitmq
3132
- api
3233
command: dockerize -wait http://api:4000/.well-known/apollo/server-health -timeout 30s yarn jest --config=./test/integration/jest.config.js --runInBand test/integration
3334
volumes:
@@ -44,12 +45,12 @@ services:
4445
environment:
4546
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbitmq_management load_definitions "/tmp/rabbit.definitions.json"
4647

47-
accounting:
48-
image: codexteamuser/codex-accounting:prod
49-
env_file:
50-
- ./test/integration/accounting.env
51-
volumes:
52-
- ./test/integration/accounting.env:/usr/src/app/.env
48+
# accounting:
49+
# image: codexteamuser/codex-accounting:prod
50+
# env_file:
51+
# - ./test/integration/accounting.env
52+
# volumes:
53+
# - ./test/integration/accounting.env:/usr/src/app/.env
5354

5455
volumes:
5556
mongodata-test:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"migrations:up": "docker-compose exec api yarn migrate-mongo up",
1616
"migrations:down": "docker-compose exec api yarn migrate-mongo down",
1717
"test": "jest --coverage",
18-
"test:integration": "docker compose -f docker-compose.test.yml up --exit-code-from tests tests"
18+
"test:integration": "docker compose -f docker-compose.test.yml up --exit-code-from tests tests",
19+
"test:integration:down": "docker compose -f docker-compose.test.yml down"
1920
},
2021
"devDependencies": {
2122
"@shelf/jest-mongodb": "^1.2.2",

0 commit comments

Comments
 (0)