test: stabilize media and contract shards

This commit is contained in:
Peter Steinberger
2026-04-11 01:21:22 +01:00
parent 99fc830b73
commit 950ecd30ec
4 changed files with 13 additions and 0 deletions

View File

@@ -1,8 +1,11 @@
import * as providerAuth from "openclaw/plugin-sdk/provider-auth-runtime";
import { installPinnedHostnameTestHooks } from "openclaw/plugin-sdk/testing";
import { afterEach, describe, expect, it, vi } from "vitest";
import { buildVydraImageGenerationProvider } from "./image-generation-provider.js";
describe("vydra image-generation provider", () => {
installPinnedHostnameTestHooks();
afterEach(() => {
vi.unstubAllGlobals();
vi.restoreAllMocks();

View File

@@ -1,7 +1,10 @@
import { installPinnedHostnameTestHooks } from "openclaw/plugin-sdk/testing";
import { afterEach, describe, expect, it, vi } from "vitest";
import { buildVydraSpeechProvider } from "./speech-provider.js";
describe("vydra speech provider", () => {
installPinnedHostnameTestHooks();
const provider = buildVydraSpeechProvider();
afterEach(() => {

View File

@@ -1,8 +1,11 @@
import * as providerAuth from "openclaw/plugin-sdk/provider-auth-runtime";
import { installPinnedHostnameTestHooks } from "openclaw/plugin-sdk/testing";
import { afterEach, describe, expect, it, vi } from "vitest";
import { buildVydraVideoGenerationProvider } from "./video-generation-provider.js";
describe("vydra video-generation provider", () => {
installPinnedHostnameTestHooks();
afterEach(() => {
vi.unstubAllGlobals();
vi.restoreAllMocks();

View File

@@ -10,6 +10,10 @@ export function createContractsVitestConfig() {
test: {
...baseTest,
isolate: false,
// The contracts shard intentionally runs non-isolated and loads hundreds of
// contract files. Use forks so full-suite parallel runs do not hit
// Vitest worker-thread heap limits.
pool: "forks",
runner: nonIsolatedRunnerPath,
setupFiles: baseTest.setupFiles ?? [],
include: [