Skip to content

Commit 2f4473b

Browse files
committed
chore: move emulator env var into test setup
1 parent b6c4cd1 commit 2f4473b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.env

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ STATS_TOKEN=
148148
GCP_PUBSUB_PROJECT_ID=your-project-name
149149
GCP_PUBSUB_TOPIC_NAME=hibp-breaches
150150
GCP_PUBSUB_SUBSCRIPTION_NAME=hibp-cron
151-
PUBSUB_HOST=localhost
152-
PUBSUB_PORT=8085
153-
PUBSUB_EMULATOR_HOST="${PUBSUB_HOST}:${PUBSUB_PORT}"
154151

155152
# Randomly-generated UUIDv5 namespace, until/unless we are approved to use FxA UID for Nimbus User ID.
156153
NIMBUS_UUID_NAMESPACE=00000000-0000-0000-0000-000000000000

jest.setup.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ jest.mock("./src/envVars", () => {
5555
getEnvVarsOrThrow: () => process.env,
5656
};
5757
});
58+
59+
// Avoiding putting in the env file in case this gets loaded into prod
60+
// TODO: Centralize and streamline configuration for environments
61+
process.env.PUBSUB_EMULATOR_HOST = "localhost:8085";

0 commit comments

Comments
 (0)