Files
fusion/packages/dashboard/app/__tests__/App.shell-onboarding.test.tsx
Fusion 3feeb9026a feat(FN-3398): update desktop README with multi-project setup and troublesh
The merge lands Step 7 of FN-3398, adding documentation and delivery artifacts across the mobile and desktop packages with updated READMEs, mobile-specific docs, and architecture references.

Fusion-Task-Id: FN-3398
2026-05-04 22:17:10 -07:00

35 lines
856 B
TypeScript

import { describe, expect, it } from "vitest";
import { requiresNativeShellOnboarding } from "../App";
describe("App shell onboarding gating", () => {
it("requires onboarding for mobile shell without active profile", () => {
expect(
requiresNativeShellOnboarding(
{ host: "mobile-shell", activeProfileId: null },
true,
false,
),
).toBe(true);
});
it("skips onboarding for desktop local mode", () => {
expect(
requiresNativeShellOnboarding(
{ host: "desktop-shell", desktopMode: "local", activeProfileId: null },
true,
false,
),
).toBe(false);
});
it("skips onboarding for web host", () => {
expect(
requiresNativeShellOnboarding(
{ host: "web", activeProfileId: null },
true,
false,
),
).toBe(false);
});
});