Skip to content

Commit d02a5b4

Browse files
committed
test(ui): split the oversized cron view suite to unbreak main
`main` is red: `check-lint-core-5` fails with ui/src/pages/cron/view.test.ts 1124:4 error File has too many lines (1004). eslint(max-lines) The file has been growing for a while (1104 lines at fa75cdd, 1116 at 2acfc47) and crossed the 1000 code-line cap at a4b3f63 (#126945). Every PR opened since inherits the failure, so this is not any one PR's fault to fix in passing -- it blocks the merge gate for everyone. Repo policy forbids a `max-lines` suppression, so the file is split along the seam it already had: three top-level describes, one of which was two thirds of the file. `cron view editor` moves to `view.editor.test.ts`; `cron view list pane` and `cron view selects` stay in `view.test.ts`. The four DOM helpers the blocks shared move into the existing `view.test-support.ts` sibling rather than being duplicated, and each file imports only what it uses. No test content changed: 42 tests before, 42 after, same 41 `it(` declarations. Sizes drop to 373 / 721 / 143 lines, all well under the cap.
1 parent 9bc772b commit d02a5b4

3 files changed

Lines changed: 767 additions & 754 deletions

File tree

0 commit comments

Comments
 (0)