mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: make suites safe without isolation (#78834)
* test: make suites safe without isolation * fix: narrow auth profile credential types * test: inject channel module loader factory locally
This commit is contained in:
committed by
GitHub
parent
9ffe290a17
commit
1ef85c7d4c
@@ -1,4 +1,4 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { afterAll, describe, expect, it, vi } from "vitest";
|
||||
|
||||
const sdkExports = vi.hoisted(() => ({
|
||||
generateImage: vi.fn(),
|
||||
@@ -14,6 +14,11 @@ import {
|
||||
import { generateImage, listRuntimeImageGenerationProviders } from "./runtime.js";
|
||||
|
||||
describe("image-generation-core runtime", () => {
|
||||
afterAll(() => {
|
||||
vi.doUnmock("openclaw/plugin-sdk/image-generation-runtime");
|
||||
vi.resetModules();
|
||||
});
|
||||
|
||||
it("re-exports generateImage from the plugin sdk runtime", () => {
|
||||
expect(generateImage).toBe(sdkGenerateImage);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user