The GitHub Actions job "Required Checks" on texera.git/main has failed. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: afa8af22b2ac0279fbcc0c610cfe54e3ee0ef0b8 / Meng Wang <[email protected]> test(frontend): add unit test coverage for formly-utils field helpers (#6365) ### What changes were proposed in this PR? Add unit test coverage for the pure `FormlyFieldConfig` helpers in `frontend/src/app/common/formly/formly-utils.ts` — `getFieldByName`, `setHideExpression`, and the `createShouldHideFieldFunc` predicate factory. A Vitest spec on plain objects (no `TestBed`). No production-code changes. The rxjs `createOutputFormChangeEventStream` (debounce/distinct/share stream) is out of scope for this issue. ### Any related issues, documentation, discussions? Closes #6361. See `frontend/TESTING.md`. ### How was this PR tested? ``` ng test --watch=false --include src/app/common/formly/formly-utils.spec.ts ``` 9 pass. ESLint and Prettier on the new spec are clean. The spec is pure — it builds plain `FormlyFieldConfig` objects (no `TestBed`) and covers: `getFieldByName` (match / no-match / first-of-duplicate-keys); `setHideExpression` (sets the hide expression on present fields, no-op for absent names); and the `createShouldHideFieldFunc` predicate (missing model → `false`, null target → `hideOnNull`, anchored regex match, and `equals` via `toString()`). ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 4.8 [1M context]) --------- 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/29184556350 With regards, GitHub Actions via GitBox
