gsxdsm
edde74d568
FN-6146: harden dashboard test mocks and request helper
Stabilize dashboard tests against constructor and request-harness edge cases.
- update dashboard route and service tests to use constructor-safe mock implementations and reset targeted spies between cases
- make the test request helper resume its mock socket, always report successful writes, and preserve end callbacks
- tighten board workflow route assertions around explicit workflow-column flag disabling and cache-bounded slim task snapshots
Files changed:
.../__tests__/auth-middleware-integration.test.ts | 4 ++--
.../src/__tests__/browse-directory-routes.test.ts | 4 ++--
packages/dashboard/src/__tests__/chat.test.ts | 3 ++-
.../src/__tests__/discovery-routes.test.ts | 4 ++--
.../src/__tests__/docker-node-routes.test.ts | 4 ++--
.../__tests__/experiment-routes.finalize.test.ts | 2 +-
.../src/__tests__/github-issue-comment.test.ts | 4 ++--
.../dashboard/src/__tests__/github-poll.test.ts | 4 ++--
.../__tests__/github-source-issue-close.test.ts | 4 ++--
.../github-source-issue-reconciler.test.ts | 4 ++--
.../src/__tests__/github-tracking-comments.test.ts | 4 ++--
.../src/__tests__/github-tracking-delete.test.ts | 4 ++--
.../src/__tests__/github-tracking-hook.test.ts | 4 ++--
...ithub-tracking-periodic-reconcile-sweep.test.ts | 12 +++++-----
.../__tests__/github-tracking-reconciler.test.ts | 4 ++--
.../src/__tests__/github-tracking-state.test.ts | 4 ++--
.../src/__tests__/github-tracking-unlink.test.ts | 4 ++--
.../src/__tests__/github-tracking.test.ts | 4 ++--
.../dashboard/src/__tests__/mesh-routes.test.ts | 4 ++--
.../dashboard/src/__tests__/node-routes.test.ts | 4 ++--
.../src/__tests__/pi-extensions-routes.test.ts | 10 ++++-----
.../src/__tests__/plugin-routes.routes.test.ts | 4 ++--
.../dashboard/src/__tests__/plugin-routes.test.ts | 4 ++--
.../__tests__/project-pause-resume-routes.test.ts | 4 ++--
.../dashboard/src/__tests__/project-routes.test.ts | 4 ++--
.../dashboard/src/__tests__/routes-agents.test.ts | 4 ++--
.../dashboard/src/__tests__/routes-auth.test.ts | 6 +++--
.../src/__tests__/routes-automation.test.ts | 4 ++--
.../dashboard/src/__tests__/routes-git.test.ts | 4 ++--
.../dashboard/src/__tests__/routes-github.test.ts | 4 ++--
.../src/__tests__/routes-planning-tracking.test.ts | 1 +
.../src/__tests__/routes-planning.test.ts | 4 ++--
.../dashboard/src/__tests__/routes-proxy.test.ts | 8 +++----
.../src/__tests__/routes-settings.test.ts | 4 ++--
.../dashboard/src/__tests__/routes-system.test.ts | 7 ++++--
.../src/__tests__/routes-tasks-ops.test.ts | 4 ++--
.../dashboard/src/__tests__/routes-tasks.test.ts | 4 ++--
.../src/__tests__/session-resume-history.test.ts | 1 +
.../dashboard/src/__tests__/setup-routes.test.ts | 8 +++----
.../shared-branch-group-entry-points.test.ts | 4 ++--
.../routes/__tests__/board-workflows-route.test.ts | 26 +++++++++++++---------
.../src/routes/__tests__/custom-providers.test.ts | 4 ++--
.../routes/__tests__/docker-node-routes.test.ts | 4 ++--
.../__tests__/register-docker-node-routes.test.ts | 6 ++---
.../register-docker-provisioning-routes.test.ts | 10 ++++-----
packages/dashboard/src/test-request.ts | 7 ++++--
46 files changed, 126 insertions(+), 109 deletions(-)
Fusion-Task-Id: FN-6146
Fusion-Task-Lineage: 989e9da3-92ed-43bd-a505-6114de4f1120
2026-06-09 20:08:18 -07:00
..
2026-06-09 20:08:18 -07:00
2026-06-09 20:08:18 -07:00
2026-06-05 01:45:48 -07:00
2026-04-26 15:00:10 -07:00
2026-04-26 15:16:22 -07:00
2026-05-07 11:25:01 -07:00
2026-06-01 22:50:41 -07:00
2026-04-22 08:23:36 -07:00
2026-05-12 19:38:39 -07:00
2026-04-28 14:25:55 -07:00
2026-05-16 22:26:42 -07:00
2026-06-04 23:39:07 -07:00
2026-04-29 20:15:05 -07:00
2026-04-14 08:13:25 -07:00
2026-06-04 22:54:49 -07:00
2026-06-05 15:30:59 -07:00
2026-04-27 22:17:54 -07:00
2026-06-05 02:38:38 -07:00
2026-04-29 22:37:52 -07:00
2026-06-05 03:56:29 -07:00
2026-06-05 00:15:57 -07:00
2026-06-05 03:41:54 -07:00
2026-04-20 12:59:58 -07:00
2026-04-20 15:37:32 -07:00
2026-04-25 10:50:32 -07:00
2026-05-19 17:19:02 -07:00
2026-04-23 23:02:35 -07:00
2026-05-05 00:31:36 -07:00
2026-04-20 22:45:26 -07:00
2026-04-23 23:02:37 -07:00
2026-04-20 22:45:26 -07:00
2026-04-20 22:45:26 -07:00
2026-05-05 00:21:21 -07:00
2026-05-07 17:24:11 -07:00
2026-04-28 18:21:17 -07:00
2026-05-14 04:42:32 -07:00
2026-06-09 12:51:20 -07:00
2026-05-11 16:33:16 -07:00
2026-04-26 18:11:09 -07:00
2026-04-16 21:42:16 -07:00
2026-06-04 08:00:33 -07:00
2026-05-20 04:41:04 -07:00
2026-05-16 12:56:31 -07:00
2026-05-18 04:01:51 -07:00
2026-05-31 17:23:26 -07:00
2026-06-04 08:00:33 -07:00
2026-06-01 08:13:36 -07:00
2026-04-16 11:08:06 -07:00
2026-06-05 20:20:25 -07:00
2026-05-28 10:32:16 -07:00
2026-06-05 03:24:41 -07:00
2026-05-18 14:46:20 -07:00
2026-05-18 14:46:20 -07:00
2026-05-04 10:18:38 -07:00
2026-05-15 11:47:03 -07:00
2026-06-02 09:02:48 -07:00
2026-06-07 20:23:07 -07:00
2026-05-28 21:23:48 -07:00
2026-06-05 01:05:51 -07:00
2026-06-09 04:27:53 -07:00
2026-06-03 15:32:29 -07:00
2026-06-08 13:32:58 -07:00
2026-05-16 10:31:44 -07:00
2026-04-23 23:02:37 -07:00
2026-06-09 04:27:53 -07:00
2026-05-17 23:21:34 -07:00
2026-04-30 20:10:52 -07:00
2026-05-06 18:40:52 -07:00
2026-05-11 06:47:43 -07:00
2026-05-11 06:47:43 -07:00
2026-06-06 06:31:44 -07:00
2026-04-23 13:48:45 -07:00
2026-05-07 04:17:52 -07:00
2026-04-16 20:12:09 -07:00
2026-06-05 15:30:59 -07:00
2026-06-02 18:29:53 -07:00
2026-06-04 23:44:39 -07:00
2026-05-31 15:17:11 -07:00
2026-06-04 22:53:02 -07:00
2026-04-23 23:02:34 -07:00
2026-04-21 20:12:00 -07:00
2026-06-09 20:08:18 -07:00
2026-04-26 13:55:25 -07:00
2026-04-29 07:10:52 -07:00
2026-06-03 07:51:38 -07:00
2026-05-17 09:24:28 -07:00
2026-04-16 21:42:16 -07:00