Pin to @whiskeysockets/baileys 7.0.0-rc.9 and remove auth fallback

This commit is contained in:
Peter Steinberger
2025-11-25 00:28:17 +01:00
parent 3b8a31660b
commit 289b417c8e
3 changed files with 17 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { MockBaileysSocket } from "../test/mocks/baileys.js";
import { createMockBaileys } from "../test/mocks/baileys.js";
vi.mock("baileys", () => {
vi.mock("@whiskeysockets/baileys", () => {
const created = createMockBaileys();
(globalThis as Record<PropertyKey, unknown>)[
Symbol.for("warelay:lastSocket")
@@ -35,8 +35,8 @@ import {
} from "./provider-web.js";
const baileys = (await import(
"baileys"
)) as unknown as typeof import("baileys") & {
"@whiskeysockets/baileys"
)) as unknown as typeof import("@whiskeysockets/baileys") & {
makeWASocket: ReturnType<typeof vi.fn>;
useSingleFileAuthState: ReturnType<typeof vi.fn>;
fetchLatestBaileysVersion: ReturnType<typeof vi.fn>;