mirror of https://github.com/openclaw/openclaw.git
fix(test): add return type annotation to hoisted mock to resolve TS2322
This commit is contained in:
parent
815bbd1fb1
commit
1fa33fb930
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue