chore: upgrade vitest to v4 (#11336)

This commit is contained in:
Almeida
2025-12-08 18:55:45 +00:00
committed by GitHub
parent d518c97840
commit d0745afbea
18 changed files with 365 additions and 285 deletions

View File

@@ -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();