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:
Peter Steinberger
2026-05-07 08:43:29 +01:00
committed by GitHub
parent 9ffe290a17
commit 1ef85c7d4c
182 changed files with 1501 additions and 834 deletions

View File

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