Skip to content

Commit 5ac72c9

Browse files
committed
test(mothership): mock Chip for the license-key guard tests on top of #8761
#8761 already guards the shown-once license key (generatedKey in isDirty, cleared on discard), so this branch keeps staging's settings page and its tests now assert that guard. The page now renders Chip, which the shared emcn mock does not provide.
1 parent 30296e4 commit 5ac72c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/settings/components/mothership/mothership.test.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const { mockGenerate } = vi.hoisted(() => ({ mockGenerate: vi.fn() }))
1212
vi.mock('@sim/emcn', () => ({
1313
...emcnMock,
1414
Badge: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
15+
Chip: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
1516
Button: ({ children, ...props }: { children?: ReactNode }) => (
1617
<button type='button' {...props}>
1718
{children}

0 commit comments

Comments
 (0)