The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-5461-cc94414e6059944d304c7c85e9cebe03d6a2453d has succeeded. Run started by GitHub user mengw15 (triggered by mengw15).
Head commit for run: 0eb8427af94e8c28ad8f4cf673cfc5404e708c8e / Meng Wang <[email protected]> test(frontend): add spec for BlobErrorHttpInterceptor (#5461) ### What changes were proposed in this PR? Adds a unit spec for `BlobErrorHttpInterceptor`, which previously had none. Covers every branch of `intercept()`: - success → passed through unchanged - re-thrown unchanged for: a non-`HttpErrorResponse` error, an `HttpErrorResponse` whose `error` is not a `Blob`, and a `Blob` error whose type is not `application/json` - an `application/json` `Blob` error → parsed into a structured `HttpErrorResponse` with the original `status` / `statusText` / `url` preserved - malformed JSON in the blob, or a `FileReader` failure → falls back to the original error The interceptor is driven directly with a stub `HttpHandler` rather than through `HttpClient`/`HTTP_INTERCEPTORS`. Two branches — a non-`HttpErrorResponse` error and a `FileReader` failure — cannot be produced through `HttpClient` (it always wraps errors as `HttpErrorResponse`, and a readable `Blob` never triggers `FileReader.onerror`), so direct invocation is the only way to cover them. Follows `frontend/TESTING.md` (Vitest). ### Any related issues, documentation, discussions? Closes #5455. ### How was this PR tested? `yarn test --include='**/blob-error-http-interceptor.service.spec.ts'` → 7 passed. `prettier --check` clean. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-7) --------- Signed-off-by: Meng Wang <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> Report URL: https://github.com/apache/texera/actions/runs/28070681659 With regards, GitHub Actions via GitBox
