mirror of https://github.com/openclaw/openclaw.git
17 lines
604 B
TypeScript
17 lines
604 B
TypeScript
import path from "node:path";
|
|
import {
|
|
bundledPluginDependentUnitTestFiles,
|
|
unitTestAdditionalExcludePatterns,
|
|
} from "./vitest.unit-paths.mjs";
|
|
import { createUnitVitestConfigWithOptions } from "./vitest.unit.config.ts";
|
|
|
|
const bundledUnitExcludePatterns = unitTestAdditionalExcludePatterns.filter(
|
|
(pattern) => !bundledPluginDependentUnitTestFiles.some((file) => path.matchesGlob(file, pattern)),
|
|
);
|
|
|
|
export default createUnitVitestConfigWithOptions(process.env, {
|
|
includePatterns: bundledPluginDependentUnitTestFiles,
|
|
extraExcludePatterns: bundledUnitExcludePatterns,
|
|
name: "bundled",
|
|
});
|