MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / messageHandler.test.js

File messageHandler.test.js

test/integration/messageHandler.test.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect, vi, beforeAll, beforeEach } from 'vitest';
2import { createMockSock, createMockMessage } from '../mocks/baileys.js';
3
4vi.mock('../../lib/print.js', () => ({ printMessage: vi.fn(async () => {}), printLog: vi.fn(() => {}) }));

Callers

nothing calls this directly

Calls 6

createMockSockFunction · 0.90
createMockMessageFunction · 0.90
handleMessagesFunction · 0.85
handleCallFunction · 0.85
registerCommandMethod · 0.80

Tested by

no test coverage detected