add process.env variables

This commit is contained in:
2025-02-02 14:48:03 -08:00
parent 3ff041dd4e
commit 998dcaa9c7

View File

@@ -9,6 +9,14 @@ describe("NotificationService", () => {
beforeEach(() => { beforeEach(() => {
repository = new UnoptimizedInMemoryRepository(); repository = new UnoptimizedInMemoryRepository();
notificationService = new NotificationService(repository); notificationService = new NotificationService(repository);
// Ensure that tests don't hit the server
process.env = {
...process.env,
APNS_KEY_ID: "1",
APNS_TEAM_ID: "1",
APNS_KEY_PATH: "./dummy-path.p8"
}
}) })
describe("reloadAPNsTokenIfTimePassed", () => { describe("reloadAPNsTokenIfTimePassed", () => {