diff --git a/apps/laboratory/tests/shared/fixtures/w3m-email-fixture.ts b/apps/laboratory/tests/shared/fixtures/w3m-email-fixture.ts index 81070c0225..a2336c55f7 100644 --- a/apps/laboratory/tests/shared/fixtures/w3m-email-fixture.ts +++ b/apps/laboratory/tests/shared/fixtures/w3m-email-fixture.ts @@ -4,17 +4,16 @@ import { ModalPage } from '../pages/ModalPage' import { ModalValidator } from '../validators/ModalValidator' import { Email } from '../utils/email' -const mailsacApiKey = process.env['MAILSAC_API_KEY'] -if (!mailsacApiKey) { - throw new Error('MAILSAC_API_KEY is not set') -} - export const testMEmail = base.extend({ library: ['wagmi', { option: true }], modalPage: async ({ page, library, context }, use, testInfo) => { const modalPage = new ModalPage(page, library, 'email') await modalPage.load() + const mailsacApiKey = process.env['MAILSAC_API_KEY'] + if (!mailsacApiKey) { + throw new Error('MAILSAC_API_KEY is not set') + } const email = new Email(mailsacApiKey) const tempEmail = email.getEmailAddressToUse(testInfo.parallelIndex)