mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 12:26:38 -06:00
fc87337c14
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.
17 lines
698 B
TypeScript
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();
|