Files
openclaw/test/vitest/vitest.extension-telegram.config.ts
Ayaan Zaidi fc87337c14 fix(ci): keep Telegram shards alive after the first isolated file (#123576)
Five-file Telegram jobs finished the first file, then isolate re-imported the next graph in silence until the 300s watchdog killed the worker. Recycle the Vitest process after each file and keep five files per CI job.
2026-08-14 14:50:21 +05:30

17 lines
698 B
TypeScript

import { createExtensionVitestConfig } from "./vitest.extension-config.ts";
// Vitest extension telegram config wires the extension telegram test shard.
import { telegramExtensionTestRoots } from "./vitest.extension-telegram-paths.mjs";
export function createExtensionTelegramVitestConfig(
env: Record<string, string | undefined> = process.env,
) {
return createExtensionVitestConfig("telegram", telegramExtensionTestRoots, env, {
fileParallelism: false,
// Conflicting module mocks need a fresh graph per file. Pair with the
// one-file process limit so isolate never re-imports inside one worker.
isolate: true,
});
}
export default createExtensionTelegramVitestConfig();