The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
a25c54348d95dbc149ca3f48db0c061623c88b8c / Yicong Huang 
<[email protected]>
test(frontend): extend code-debugger and code-editor coverage (#5191)

### What changes were proposed in this PR?

Extends the existing `code-debugger.component.spec.ts` and
`code-editor.component.spec.ts` with tests for the class-level surface
that the original specs left behind. No Monaco-editor interaction is
added — the parts that require a real editor are left for a future
browser-mode pass.

A latent test-setup bug surfaced while writing the new debugger tests:
the spec built `debugState` from `new Y.Map<…>()` directly, which
silently never fires observers because the map is not attached to a
Y.Doc. Production never hits this — `UdfDebugService` hands out maps
from a real doc — but every Y.Map observer test would have stayed at 0
coverage until the map was wired into a doc. Switching to `new
Y.Doc().getMap(…)` fixes it.

### Any related issues, documentation, discussions?

Closes #5190.

### How was this PR tested?

`yarn ng test --watch=false --include=…` runs 2 spec files / 39 tests,
all green. `yarn lint` and `yarn format:ci` both clean.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

Report URL: https://github.com/apache/texera/actions/runs/26375287088

With regards,
GitHub Actions via GitBox

Reply via email to