mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-06 15:18:58 +00:00
perf: trim slack extension test setup
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
import { createSingleChannelExtensionVitestConfig } from "./vitest.extension-channel-single-config.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionSlackVitestConfig(
|
||||
env: Record<string, string | undefined> = process.env,
|
||||
) {
|
||||
return createSingleChannelExtensionVitestConfig("slack", env);
|
||||
return createScopedVitestConfig(["extensions/slack/**/*.test.ts"], {
|
||||
dir: "extensions",
|
||||
env,
|
||||
includeOpenClawRuntimeSetup: false,
|
||||
name: "extension-slack",
|
||||
passWithNoTests: true,
|
||||
setupFiles: ["test/setup.extensions.ts"],
|
||||
});
|
||||
}
|
||||
|
||||
export default createExtensionSlackVitestConfig();
|
||||
|
||||
Reference in New Issue
Block a user