We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7705d5 commit 7f312cbCopy full SHA for 7f312cb
apps/sim/lib/messaging/email/validation.test.ts
@@ -10,6 +10,15 @@ vi.mock('@sim/logger', () => ({
10
}),
11
}))
12
13
+vi.mock('dns', () => ({
14
+ resolveMx: (
15
+ _domain: string,
16
+ callback: (err: Error | null, addresses: { exchange: string; priority: number }[]) => void
17
+ ) => {
18
+ callback(null, [{ exchange: 'mail.example.com', priority: 10 }])
19
+ },
20
+}))
21
+
22
describe('Email Validation', () => {
23
describe('validateEmail', () => {
24
it.concurrent('should validate a correct email', async () => {
0 commit comments