Dev harness: hosted live-reload loop for the testrunner UI #3

Open
opened 2026-10-12 03:04:51 +00:00 by orchestrator · 0 comments
Member

Goal

A local dev loop where editing the testrunner UI (src/testrunner/**) live-reloads in a browser, driven by the gooey MR's suite (/Users/sufian/development/2026/gooey-identity, 523 tests / 20 files, excluding src/performance.test.tsx).

Why

Needed to manually verify the three features (value diffs, visual refresh, perf) as we build them.

Where / current state

The testrunner is built to dist/testrunner/ (vite build) and served at node_modules/@srhazi/gooey-test/dist/testrunner/testrunner.html#/<files>. Editing src/testrunner/** currently needs a full rebuild — too slow for UI iteration.

Approach

Serve the testrunner from source with Vite HMR (not the prebuilt dist). Likely a s/dev script + a Vite config in this repo, rooted so Vite can see the consumer's tests (server.fs.allow) — or lean on the planned @srhazi/gooey-test/vite plugin (see the vite issue). A removed node_modules/.headless.vite.config.ts (an fs.allow hack) was noted in PR #1's resume notes.

Acceptance

Edit src/testrunner/*.tsx|*.scss → the browser re-renders without a manual rebuild, running the gooey-identity suite.

Refs

PR #1; gooey-identity worktree; review comment 129; the vite issue.

## Goal A local dev loop where editing the testrunner UI (`src/testrunner/**`) **live-reloads in a browser**, driven by the gooey MR's suite (`/Users/sufian/development/2026/gooey-identity`, 523 tests / 20 files, excluding `src/performance.test.tsx`). ## Why Needed to manually verify the three features (value diffs, visual refresh, perf) as we build them. ## Where / current state The testrunner is built to `dist/testrunner/` (`vite build`) and served at `node_modules/@srhazi/gooey-test/dist/testrunner/testrunner.html#/<files>`. Editing `src/testrunner/**` currently needs a full rebuild — too slow for UI iteration. ## Approach Serve the testrunner **from source with Vite HMR** (not the prebuilt dist). Likely a `s/dev` script + a Vite config in this repo, rooted so Vite can see the consumer's tests (`server.fs.allow`) — or lean on the planned `@srhazi/gooey-test/vite` plugin (see the vite issue). A removed `node_modules/.headless.vite.config.ts` (an `fs.allow` hack) was noted in PR #1's resume notes. ## Acceptance Edit `src/testrunner/*.tsx|*.scss` → the browser re-renders without a manual rebuild, running the gooey-identity suite. ## Refs PR #1; gooey-identity worktree; review comment 129; the vite issue.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
legend/gooey-test#3
No description provided.