Skip to content

Commit 7bebb9c

Browse files
committed
one more test, just in case
1 parent 8419e13 commit 7bebb9c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/integration/suite.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,25 @@ export function createIntegrationTestsSuite(
153153
await client.close();
154154
});
155155

156+
it('should load only specified actors when actors param is provided (no other tools)', async () => {
157+
const actors = ['apify/python-example'];
158+
const client = await createClientFn({ actors });
159+
const names = getToolNames(await client.listTools());
160+
161+
// Should only load the specified actor, no default tools or categories
162+
expect(names.length).toEqual(actors.length);
163+
expect(names).toContain(actorNameToToolName(actors[0]));
164+
165+
// Should NOT include any default category tools
166+
expect(names).not.toContain('search-actors');
167+
expect(names).not.toContain('fetch-actor-details');
168+
expect(names).not.toContain('call-actor');
169+
expect(names).not.toContain('search-apify-docs');
170+
expect(names).not.toContain('fetch-apify-docs');
171+
172+
await client.close();
173+
});
174+
156175
it('should not load any tools when enableAddingActors is true and tools param is empty', async () => {
157176
const client = await createClientFn({ enableAddingActors: true, tools: [] });
158177
const names = getToolNames(await client.listTools());

0 commit comments

Comments
 (0)