Add env variable as needed by unit tests

pull/11044/head
Hariom Balhara 2023-09-02 15:34:09 +05:30
parent f954fa6a1c
commit 56ee5716d5
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ const timeout = process.env.CI ? 5000 : 20000;
describe.sequential("handleNewBooking", () => {
beforeEach(() => {
// Required to able to generate token in email in some cases
process.env.CALENDSO_ENCRYPTION_KEY="abcdefghjnmkljhjklmnhjklkmnbhjui"
mockNoTranslations();
mockEnableEmailFeature();
globalThis.testEmails = [];