import { VoiceService } from '../../src/services/VoiceService'; import { VoiceState } from 'discord.js'; describe('VoiceService Test Suite', () => { it('should ignore when member is not present in the voice state', async () => { // Mocking discord.js objects is complex, so we ensure the service handles null safety const mockState = { channelId: null } as VoiceState; await VoiceService.handleVoiceStateUpdate(mockState, mockState); expect(true).toBe(true); }); });