mengw15 opened a new issue, #6376:
URL: https://github.com/apache/texera/issues/6376

   ### Task Summary
   
   `agent-service/src/api/compile-api.ts` (codecov ~10%) has 
`compileWorkflowAsync(logicalPlan)`, a fetch-based client returning 
`WorkflowCompilationResponse | null`. Unit-testable with `bun test` by mocking 
global `fetch`.
   
   ### Behavior to cover
   
   - `compileWorkflowAsync(plan)` issues `POST` to the compile endpoint with 
the plan body
   - ok response -> returns the parsed `WorkflowCompilationResponse`
   - non-ok response or a thrown/rejected fetch -> returns `null` (assert the 
catch/fallback)
   - assert request shape via the fetch mock
   
   ### Task Type
   
   - [ ] Refactor / Cleanup
   - [ ] DevOps / Deployment / CI
   - [x] Testing / QA
   - [ ] Documentation
   - [ ] Performance
   - [ ] Other


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to