From c63c6ce58d5cc259296ea66d4eb0b87eae5999dd Mon Sep 17 00:00:00 2001 From: lizozom Date: Wed, 20 Mar 2024 10:39:23 +0200 Subject: [PATCH] chore: move FHIR server docker compose file into tests --- .gitignore | 2 +- docker-compose.yml => tests/docker-compose.yml | 0 hapi.application.yaml => tests/hapi.application.yaml | 0 tests/setup.ts | 6 +++++- 4 files changed, 6 insertions(+), 2 deletions(-) rename docker-compose.yml => tests/docker-compose.yml (100%) rename hapi.application.yaml => tests/hapi.application.yaml (100%) diff --git a/.gitignore b/.gitignore index 6fd4774..b03677a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,5 @@ node_modules .env .env.test .eslintcache -hapi.postgress.data +**/hapi.postgress.data diff --git a/docker-compose.yml b/tests/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to tests/docker-compose.yml diff --git a/hapi.application.yaml b/tests/hapi.application.yaml similarity index 100% rename from hapi.application.yaml rename to tests/hapi.application.yaml diff --git a/tests/setup.ts b/tests/setup.ts index 90c28b5..85c7706 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -48,7 +48,11 @@ async function waitForFhirApi (maxAttempts, currentAttempt = 1) { async function setup () { console.log('starting FHIR server...'); - await compose.upAll({ cwd: path.join(__dirname), log: true }); + await compose.upAll({ + cwd: path.join(__dirname), + config: 'docker-compose.yml', + log: true + }); const result = await compose.ps({ cwd: path.join(__dirname) }); globalThis.services = result.data.services;