Skip to content

Commit e9bf2b2

Browse files
fix: missing tests from rebase
1 parent 0839a69 commit e9bf2b2

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/__tests__/CodexACPAgent/e2e/acp-e2e.test.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,28 @@ describeE2E("E2E tests", () => {
145145

146146
expect(await fixture.hasMarketplace(HELLO_WORLD_MARKETPLACE_NAME)).toBe(false);
147147
});
148+
149+
it("lists a skill from additionalDirectories", async () => {
150+
fixture = await createAuthenticatedFixture();
151+
const additionalRoot = await prepareHelloWorldAdditionalRoot(fixture);
152+
const session = await fixture.createSession({
153+
additionalDirectories: [additionalRoot],
154+
});
155+
156+
await expectHelloSkillListed(fixture, session.sessionId);
157+
});
158+
159+
it("lists a skill from _meta.additionalRoots", async () => {
160+
fixture = await createAuthenticatedFixture();
161+
const additionalRoot = await prepareHelloWorldAdditionalRoot(fixture);
162+
const session = await fixture.createSession({
163+
_meta: {
164+
additionalRoots: [additionalRoot],
165+
},
166+
});
167+
168+
await expectHelloSkillListed(fixture, session.sessionId);
169+
});
148170
});
149171

150172
async function prepareHelloWorldAdditionalRoot(fixture: SpawnedAgentFixture): Promise<string> {

0 commit comments

Comments
 (0)