mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 22:32:12 +00:00
18 lines
566 B
TypeScript
18 lines
566 B
TypeScript
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();
|