Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/handlers/project/add/memory/memory.screen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ describe("project add memory wizard", () => {
expect(review).toContain("event retention 30 days");
await r.press("return");

await waitForText(r.lastFrame, "added memory 'orders_memory' to 'TestProject'");
// Writing agentcore.json can take over a second on the Windows runner.
await waitForText(r.lastFrame, "added memory 'orders_memory' to 'TestProject'", 5000);
expect(r.lastFrame()).toContain("[enter] go back");

// The strategies carry the same namespaces `--strategies SEMANTIC,EPISODIC`
Expand Down
4 changes: 2 additions & 2 deletions src/handlers/project/remove/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe("project remove", () => {
expect(await Bun.file(envPath).text()).not.toContain(envKey);
expect(io.stderr()).toContain(`removed '${envKey}' from ${ENV_LOCAL_RELATIVE_PATH}`);
expect(io.stderr()).toContain("removed credential with name 'svc-key' from project");
});
}, 15000);

test("--json reports a removal and its cleaned environment keys", async () => {
const { projectRoot, cleanup } = await initProject({
Expand All @@ -213,7 +213,7 @@ describe("project remove", () => {
});
expect(io.stdout()).not.toContain("removed credential with name");
expect(io.stderr()).toContain(`removed '${envKey}' from ${ENV_LOCAL_RELATIVE_PATH}`);
});
}, 15000);

test("removing a secret-reference credential leaves .env.local alone", async () => {
const { projectRoot, cleanup } = await initProject({
Expand Down
Loading