2022-05-03 23:58:19 +02:00
|
|
|
import env from "../src/environment"
|
2022-04-11 15:39:31 +02:00
|
|
|
|
2023-01-27 12:43:36 +01:00
|
|
|
const globalSafe = global as any
|
2022-11-16 14:06:30 +01:00
|
|
|
|
2023-01-31 11:21:19 +01:00
|
|
|
console.log(global)
|
|
|
|
|
2023-01-30 19:18:23 +01:00
|
|
|
env._set(
|
|
|
|
"COUCH_DB_PORT",
|
|
|
|
globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_PORT_5984__"]
|
|
|
|
)
|
2023-01-27 12:43:36 +01:00
|
|
|
env._set(
|
|
|
|
"COUCH_DB_URL",
|
2023-01-30 19:18:23 +01:00
|
|
|
`http://${globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_IP__"]}:${globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_PORT_5984__"]}`
|
2023-01-27 12:43:36 +01:00
|
|
|
)
|
|
|
|
env._set(
|
|
|
|
"MINIO_URL",
|
2023-01-30 19:18:23 +01:00
|
|
|
`http://${globalSafe["__TESTCONTAINERS_MINIO-SERVICE-1_IP__"]}:${globalSafe["__TESTCONTAINERS_MINIO-SERVICE-1_PORT_9000__"]}`
|
2023-01-27 12:43:36 +01:00
|
|
|
)
|