mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-29 23:53:36 +00:00
17 lines
655 B
TypeScript
17 lines
655 B
TypeScript
// Vitest plugin sdk config wires the plugin sdk test shard.
|
|
import { pluginSdkLightTestFiles } from "./vitest.plugin-sdk-paths.mjs";
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
import { bundledPluginDependentUnitTestFiles } from "./vitest.unit-paths.mjs";
|
|
|
|
export function createPluginSdkVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(["src/plugin-sdk/**/*.test.ts"], {
|
|
dir: "src",
|
|
env,
|
|
exclude: [...pluginSdkLightTestFiles, ...bundledPluginDependentUnitTestFiles],
|
|
name: "plugin-sdk",
|
|
passWithNoTests: true,
|
|
});
|
|
}
|
|
|
|
export default createPluginSdkVitestConfig();
|