Yicong-Huang opened a new issue, #5182:
URL: https://github.com/apache/texera/issues/5182

   ### Task Summary
   
   Four frontend specs hit the real Angular `HttpClient` instead of routing 
through `HttpClientTestingModule`. Unit tests should mock HTTP rather than 
depend on a working backend or hand-rolled HTTP doubles, both for CI stability 
and to match the convention in `frontend/TESTING.md` §"Anti-patterns".
   
   Affected specs:
   
   - 
`frontend/src/app/workspace/service/workflow-status/operator-reuse-cache-status.service.spec.ts`
 — imports the real `HttpClientModule`.
   - 
`frontend/src/app/workspace/service/operator-menu/operator-menu.service.spec.ts`
 — imports the real `HttpClientModule`.
   - 
`frontend/src/app/workspace/service/execute-workflow/execute-workflow.service.spec.ts`
 — ships a hand-rolled `StubHttpClient`.
   - 
`frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.spec.ts`
 — provides the real `HttpClient` token directly.
   
   ### Task Type
   
   - [x] Testing / QA


-- 
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