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
2 changes: 1 addition & 1 deletion packages/cli/test/init-no-interactive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ describe("taskless init (the batch install)", () => {
);
expect(boxed).not.toContain(".claude/skills/taskless");
expect(stdout.indexOf("COMMIT BEFORE YOU START YOUR AGENT")).toBeLessThan(
stdout.indexOf("ask to onboard with Taskless")
stdout.indexOf(ONBOARD_PROMPT)
);
});

Expand Down
5 changes: 4 additions & 1 deletion packages/cli/test/init-telemetry-notice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ vi.mock("../src/telemetry", () => ({
}));

const { initCommand } = await import("../src/commands/init");
const { getOnboardTrailer } = await import("../src/commands/onboard");

interface RunnableCommand {
run: (context: {
Expand Down Expand Up @@ -68,7 +69,9 @@ describe("init tells the user about telemetry", () => {
expect(output.filter((line) => line === "<telemetry notice>")).toHaveLength(
1
);
expect(output.at(-1)).toMatch(/^In your AI tool, /);
// One `console.log` call per entry, and the trailer is a single two-line
// call, so the last entry is the whole trailer.
expect(output.at(-1)).toBe(getOnboardTrailer());
expect(isTelemetryEnabled).toHaveBeenCalledWith(cwd);
});

Expand Down
Loading