mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 06:41:08 +00:00
23 lines
599 B
TypeScript
23 lines
599 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import { sharedVitestConfig } from "./vitest.shared.config.ts";
|
|
|
|
const base = sharedVitestConfig as Record<string, unknown>;
|
|
const baseTest = sharedVitestConfig.test ?? {};
|
|
|
|
export function createContractsVitestConfig() {
|
|
return defineConfig({
|
|
...base,
|
|
test: {
|
|
...baseTest,
|
|
setupFiles: baseTest.setupFiles ?? [],
|
|
include: [
|
|
"src/channels/plugins/contracts/**/*.test.ts",
|
|
"src/plugins/contracts/**/*.test.ts",
|
|
],
|
|
passWithNoTests: true,
|
|
},
|
|
});
|
|
}
|
|
|
|
export default createContractsVitestConfig();
|