The GitHub Actions job "Benchmarks" on texera.git/main has succeeded. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: f673554f5aca4863e1ee8d652df3ba8520b847a1 / Matthew B. <[email protected]> test(frontend): add unit tests for FileSaverService (#9045) ### What changes were proposed in this PR? - Adds a Vitest spec for `FileSaverService`, the thin wrapper whose `saveAs(data, filename?, options?)` forwards straight to the `file-saver` library's `saveAs`. - Mocks the `file-saver` library so the suite can assert the call is forwarded unchanged: a Blob payload passes through with its filename and options, and a string payload (such as a URL) passes through. - Asserts that an omitted filename and options arrive as `undefined`, and that an error thrown by the underlying `saveAs` propagates to the caller instead of being swallowed. ### Any related issues, documentation, discussions? Closes: #6448 Supersedes #6460, which the stale bot auto-closed for inactivity. The branch is now merged up to current `main`. ### How was this PR tested? - Run `cd frontend && npx ng test --include="**/file-saver.service.spec.ts" --watch=false`, expect the FileSaverService suite to pass. - Confirm the forwarding cases hold: a Blob and a string payload each reach the mocked `saveAs` unchanged, an omitted filename and options arrive as `undefined`, and a thrown error surfaces to the caller. ### Was this PR authored or co-authored using generative AI tooling? Co-authored with Claude Opus 4.8 in compliance with ASF --------- Signed-off-by: Xinyuan Lin <[email protected]> Co-authored-by: Xinyuan Lin <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Report URL: https://github.com/apache/texera/actions/runs/40871176228 With regards, GitHub Actions via GitBox
