mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-19 19:01:40 +00:00
19 lines
639 B
TypeScript
19 lines
639 B
TypeScript
// Vitest extension matrix config wires the extension matrix test shard.
|
|
import { matrixExtensionTestRoots } from "./vitest.extension-matrix-paths.mjs";
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
export function createExtensionMatrixVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(
|
|
matrixExtensionTestRoots.map((root) => `${root}/**/*.test.ts`),
|
|
{
|
|
dir: "extensions",
|
|
env,
|
|
name: "extension-matrix",
|
|
passWithNoTests: true,
|
|
setupFiles: ["test/setup.extensions.ts"],
|
|
},
|
|
);
|
|
}
|
|
|
|
export default createExtensionMatrixVitestConfig();
|