Skip to content

Commit c42a014

Browse files
committed
test(app-shell): the Interfaces create pin serves the package list from its double
The no-app empty state now asks the listed package manifests whether the package contributes navigation elsewhere; this file's packages-io double answers an empty list instead of reaching the network. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSRtrD4WV4w6qQDYJ2
1 parent d36804b commit c42a014

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.interfacesCreate-11823.test.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ vi.mock('../metadata-admin/useMetadata', async (importOriginal) => {
112112

113113
vi.mock('./packages-io', async (importOriginal) => {
114114
const mod = await importOriginal<typeof import('./packages-io')>();
115-
return { ...mod, fetchPackages: vi.fn(async () => []) };
115+
// objectstack#29851 — the no-app empty state asks the package list whether
116+
// the package contributes navigation elsewhere; this package lists none.
117+
return { ...mod, fetchPackages: vi.fn(async () => []), fetchListedPackageManifests: vi.fn(async () => new Map()) };
116118
});
117119

118120
vi.mock('@object-ui/react', async (importOriginal) => {

0 commit comments

Comments
 (0)