Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix test-layer toolkits defaults merge

jkomynof22215494c4e
diff --git a/ts/packages/cli/test/__utils__/services/test-layer.ts b/ts/packages/cli/test/__utils__/services/test-layer.ts
index 0a4ebaa94..94731e60b 100644
--- a/ts/packages/cli/test/__utils__/services/test-layer.ts
+++ b/ts/packages/cli/test/__utils__/services/test-layer.ts
@@ -90,10 +90,11 @@ export const TestLayer = (input?: TestLiveInput) =>
triggerTypesAsEnums: [] as TriggerTypesAsEnums,
triggerTypes: [] as TriggerTypes,
} satisfies TestLiveInput['toolkitsData'];
- const { fixture, toolkitsData } = Object.assign(
- { fixture: undefined, toolkitsData: defaultAppClientData },
- input
- );
+ const fixture = input?.fixture;
+ const toolkitsData = {
+ ...defaultAppClientData,
+ ...(input?.toolkitsData ?? {}),
+ };
const tempDir = tempy.temporaryDirectory({ prefix: 'test' });
const cwd = (yield* setupFixtureFolder({ fixture, tempDir })) ?? tempDir;