mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: upgrade vitest to v4 (#11336)
This commit is contained in:
@@ -37,7 +37,10 @@ const AudioPlayer = _AudioPlayer as unknown as Mocked<typeof _AudioPlayer>;
|
||||
const PlayerSubscription = _PlayerSubscription as unknown as Mocked<typeof _PlayerSubscription>;
|
||||
|
||||
const _NetworkingClass = Networking.Networking;
|
||||
vitest.spyOn(Networking, 'Networking').mockImplementation((...args) => new _NetworkingClass(...args));
|
||||
// eslint-disable-next-line prefer-arrow-callback
|
||||
vitest.spyOn(Networking, 'Networking').mockImplementation(function Networking(...args) {
|
||||
return new _NetworkingClass(...args);
|
||||
});
|
||||
|
||||
function createFakeAdapter() {
|
||||
const sendPayload = vitest.fn();
|
||||
|
||||
Reference in New Issue
Block a user