test: migrate suites to e2e coverage layout

This commit is contained in:
Peter Steinberger
2026-02-13 14:28:12 +00:00
parent f5160ca6be
commit 9131b22a28
329 changed files with 1455 additions and 1077 deletions

View File

@@ -83,9 +83,7 @@ describe("after_tool_call hook wiring", () => {
} as never,
);
await vi.waitFor(() => {
expect(hookMocks.runner.runAfterToolCall).toHaveBeenCalledTimes(1);
});
expect(hookMocks.runner.runAfterToolCall).toHaveBeenCalledTimes(1);
const [event, context] = hookMocks.runner.runAfterToolCall.mock.calls[0];
expect(event.toolName).toBe("read");
@@ -149,9 +147,7 @@ describe("after_tool_call hook wiring", () => {
} as never,
);
await vi.waitFor(() => {
expect(hookMocks.runner.runAfterToolCall).toHaveBeenCalledTimes(1);
});
expect(hookMocks.runner.runAfterToolCall).toHaveBeenCalledTimes(1);
const [event] = hookMocks.runner.runAfterToolCall.mock.calls[0];
expect(event.error).toBeDefined();