mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
c4f4fdd794
The widget's new healthApi.features() call left BackgroundTasksWidget.test.tsx red — the api/client mock never exported healthApi, so both existing tests threw on mount. The mock now carries it, pending by default like the poll backstop, and the retry itself finally has tests. Writing them turned up two gaps. The retry never called saveImportFiles, so the files only lived in memory: reloading during the retry parse left the review with no source document to attach to the bookings it creates, unlike every import started from the modal. And the button stayed live while the request was in flight, so a second click started a second force-ai job on the same files.