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