mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
test: replace jest with vitest (#10472)
* chore: vitest config * feat: vitest * fix: do not actually create ws * chore: config * chore: lockfile * chore: revert downgrade, up node * chore: package - 'git add -A' * chore: delete mock-socket * chore: delete mock-socket * fix: lockfile --------- Co-authored-by: almeidx <github@almeidx.dev> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
// @ts-nocheck
|
||||
import { describe, test, expect, vitest, beforeAll, beforeEach } from 'vitest';
|
||||
import * as VoiceConnection from '../src/VoiceConnection';
|
||||
import { joinVoiceChannel } from '../src/joinVoiceChannel';
|
||||
|
||||
const adapterCreator = () => ({ destroy: jest.fn(), send: jest.fn() }) as any;
|
||||
const createVoiceConnection = jest.spyOn(VoiceConnection, 'createVoiceConnection');
|
||||
const adapterCreator = () => ({ destroy: vitest.fn(), send: vitest.fn() }) as any;
|
||||
const createVoiceConnection = vitest.spyOn(VoiceConnection, 'createVoiceConnection');
|
||||
|
||||
beforeAll(() => {
|
||||
createVoiceConnection.mockImplementation(() => null as any);
|
||||
|
||||
Reference in New Issue
Block a user