diff --git a/api.planx.uk/.env.test.example b/api.planx.uk/.env.test.example index 81f94c08c1..ba874716ac 100644 --- a/api.planx.uk/.env.test.example +++ b/api.planx.uk/.env.test.example @@ -25,6 +25,9 @@ EDITOR_URL_EXT=example.com HASURA_GRAPHQL_URL=http://hasura:8080/v1/graphql HASURA_PLANX_API_KEY=👻 +# Minio object storage server port +MINIO_PORT=1234 + # Integrations BOPS_API_TOKEN=👻 BOPS_API_TOKEN=👻 diff --git a/api.planx.uk/jest.setup.js b/api.planx.uk/jest.setup.js index 5941f21f04..f196628439 100644 --- a/api.planx.uk/jest.setup.js +++ b/api.planx.uk/jest.setup.js @@ -1,7 +1,10 @@ import dotenv from "dotenv"; import { queryMock } from "./tests/graphqlQueryMock"; -dotenv.config({ path: "./.env.test" }); +dotenv.config({ + path: "./.env.test", + override: true, +}); beforeEach(() => { queryMock.setup(process.env.HASURA_GRAPHQL_URL); diff --git a/api.planx.uk/modules/file/service/utils.test.ts b/api.planx.uk/modules/file/service/utils.test.ts index 0fbecabc47..6ed470b57f 100644 --- a/api.planx.uk/modules/file/service/utils.test.ts +++ b/api.planx.uk/modules/file/service/utils.test.ts @@ -12,7 +12,7 @@ describe("s3 Factory", () => { }); it("returns Minio config for local development", () => { - expect(s3Factory()).toHaveProperty("endpoint.host", "minio"); + expect(s3Factory()).toHaveProperty("endpoint.host", "minio:1234"); }); ["pizza", "staging", "production"].forEach((env) => {