aglinxinyuan opened a new pull request, #7026:
URL: https://github.com/apache/texera/pull/7026

   ### What changes were proposed in this PR?
   
   Adds 18 tests (17 -> 35). No source changes.
   
   - **`workflow-crud-tools.ts`** (~94% covered): the `modifyOperator` path 
where properties **pass** metadata validation (only the failing path was 
covered before), plus the input-port index guards — non-numeric key, negative 
index, and out-of-range index — each asserting the specific error message.
   - **`logger.ts`** (~57% covered, **no test before**): a new spec covering 
its level and formatting branches deterministically, with any stubbed global 
state restored.
   
   Note: `src/agent/prompts.ts` was deliberately left alone — another open PR 
is already adding `prompts.test.ts`.
   
   ### Any related issues, documentation, discussions?
   
   Closes #7024.
   
   ### How was this PR tested?
   
   `bun test src/agent/tools/workflow-crud-tools.spec.ts src/logger.spec.ts` -> 
35 pass, 0 fail (104 expect() calls). `bunx prettier --check 
"src/**/*.{ts,js,json}"` clean.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])


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