budibase/packages/backend-core/tests/jestSetup.ts

19 lines
506 B
TypeScript
Raw Normal View History

2022-05-03 23:58:19 +02:00
import env from "../src/environment"
const globalSafe = global as any
2022-11-16 14:06:30 +01:00
2023-01-31 11:30:57 +01:00
console.error(global)
2023-01-31 11:21:19 +01:00
2023-01-30 19:18:23 +01:00
env._set(
"COUCH_DB_PORT",
globalSafe["__TESTCONTAINERS_COUCHDB-SERVICE-1_PORT_5984__"]
)
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__"]}`
)
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__"]}`
)