Skip to content

Commit

Permalink
build: add env values to unit test rule
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 9, 2024
1 parent 899befa commit 10e618f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions core/api/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,27 @@ dev_pnpm_task_test(

jest_test(
name = "unit-tests",
srcs = [":src"] + [":test_src"] + glob([".env", "galoy.yaml"]),
srcs = [":src"] + [":test_src"] + glob(["galoy.yaml"]),
config_file = "test/unit/jest.config.js",
env_file = ".env",
app_env = {
"HELMREVISION": "dummy",
"KRATOS_PG_CON": "pg://dummy",
"OATHKEEPER_DECISION_ENDPOINT": "http://dummy",
"NETWORK": "regtest",
"TWILIO_ACCOUNT_SID": "dummy",
"TWILIO_AUTH_TOKEN": "dummy",
"TWILIO_VERIFY_SERVICE_ID": "dummy",
"KRATOS_PUBLIC_API": "http://dummy",
"KRATOS_ADMIN_API": "http://dummy",
"KRATOS_MASTER_USER_PASSWORD": "dummy",
"BRIA_HOST": "dummy",
"BRIA_API_KEY": "dummy",
"NOTIFICATIONS_HOST": "dummy",
"MONGODB_CON": "mongodb://dummy",
"REDIS_MASTER_NAME": "dummy",
"REDIS_PASSWORD": "dummy",
"REDIS_0_DNS": "dummy",
},
env = {
"LOGLEVEL": "warn",
}
Expand Down

0 comments on commit 10e618f

Please sign in to comment.