fix(test): add return type annotation to hoisted mock to resolve TS2322

This commit is contained in:
hxy91819 2026-03-15 10:58:12 +08:00 committed by Vincent Koc
parent 815bbd1fb1
commit 1fa33fb930
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import {
import { baseConfigSnapshot, createTestRuntime } from "./test-runtime-config-helpers.js";
const catalogMocks = vi.hoisted(() => ({
listChannelPluginCatalogEntries: vi.fn(() => []),
listChannelPluginCatalogEntries: vi.fn((): ChannelPluginCatalogEntry[] => []),
}));
vi.mock("../channels/plugins/catalog.js", async (importOriginal) => {