Fix jest.setup
This commit is contained in:
parent
b2db582f02
commit
08a2e77871
|
@ -2,13 +2,15 @@ import env from "../src/environment"
|
|||
|
||||
const globalSafe = global as any
|
||||
|
||||
env._set("COUCH_DB_PORT", globalSafe.__TESTCONTAINERS_DEVENV_PORT_5984__)
|
||||
env._set(
|
||||
"COUCH_DB_PORT",
|
||||
globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_PORT_5984__"]
|
||||
)
|
||||
env._set(
|
||||
"COUCH_DB_URL",
|
||||
`http://${globalSafe.__TESTCONTAINERS_DEVENV_IP__}:${globalSafe.__TESTCONTAINERS_DEVENV_PORT_5984__}`
|
||||
`http://${globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_IP__"]}:${globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_PORT_5984__"]}`
|
||||
)
|
||||
|
||||
env._set(
|
||||
"MINIO_URL",
|
||||
`http://${globalSafe.__TESTCONTAINERS_DEVENV_IP__}:${globalSafe.__TESTCONTAINERS_DEVENV_PORT_9000__}`
|
||||
`http://${globalSafe["__TESTCONTAINERS_MINIO-SERVICE-1_IP__"]}:${globalSafe["__TESTCONTAINERS_MINIO-SERVICE-1_PORT_9000__"]}`
|
||||
)
|
||||
|
|
|
@ -21,14 +21,14 @@ const globalSafe = global as any
|
|||
|
||||
overrideConfigValue(
|
||||
"COUCH_DB_PORT",
|
||||
globalSafe.__TESTCONTAINERS_DEVENV_PORT_5984__
|
||||
globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_PORT_5984__"]
|
||||
)
|
||||
overrideConfigValue(
|
||||
"COUCH_DB_URL",
|
||||
`http://${globalSafe.__TESTCONTAINERS_DEVENV_IP__}:${globalSafe.__TESTCONTAINERS_DEVENV_PORT_5984__}`
|
||||
`http://${globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_IP__"]}:${globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_PORT_5984__"]}`
|
||||
)
|
||||
|
||||
overrideConfigValue(
|
||||
"MINIO_URL",
|
||||
`http://${globalSafe.__TESTCONTAINERS_DEVENV_IP__}:${globalSafe.__TESTCONTAINERS_DEVENV_PORT_9000__}`
|
||||
`http://${globalSafe["__TESTCONTAINERS_MINIO-SERVICE-1_IP__"]}:${globalSafe["__TESTCONTAINERS_MINIO-SERVICE-1_PORT_9000__"]}`
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue