({ project }: { project: string })
| 115 | }); |
| 116 | const api = new AtlasApi({ fetch: fetch as typeof globalThis.fetch }); |
| 117 | function Scoped({ project }: { project: string }) { |
| 118 | const feed = useDaemonLogFeed(api, true, 100, project); |
| 119 | return <div>{feed.data?.project}:{feed.error}</div>; |
| 120 | } |
| 121 | await act(async () => root.render(<Scoped project="A" />)); |
| 122 | expect(container.textContent).toBe('A:'); |
| 123 | await act(async () => root.render(<Scoped project="B" />)); |
nothing calls this directly
no test coverage detected