FN-5810: add onboard test guard for force re-run flow
Tighten onboarding verification for forced re-run behavior in CLI tests. - assert the auth-only onboarding path does not invoke init - preserve existing force re-run assertions around onboarding completion timestamp Files changed: packages/cli/src/commands/__tests__/onboard.test.ts | 1 + 1 file changed, 1 insertion(+) Fusion-Task-Id: FN-5810 Fusion-Task-Lineage: 2d240c73-2a28-47be-b726-a4645a382cb6
This commit is contained in:
@@ -170,6 +170,7 @@ describe("onboard", () => {
|
||||
|
||||
await runOnboard({ input: inputFrom(["y", "3", "y", "y", "n", "y"]) });
|
||||
expect(providerAuth.setApiKey).not.toHaveBeenCalled();
|
||||
expect(mockRunInit).not.toHaveBeenCalled();
|
||||
|
||||
await runOnboard({ force: true, input: inputFrom(["y", "n", "n", "n", "n"]) });
|
||||
expect(globalSettingsState.cliOnboardingCompletedAt).not.toBe("2026-06-01T00:00:00.000Z");
|
||||
|
||||
Reference in New Issue
Block a user