gsxdsm
550e9edd46
FN-6367: fix constructible CLI test mocks
Update CLI test mocks so Vitest-spied constructors remain new-able under current mock semantics.
- Add constructible mock wrappers for TaskStore and related CLI test constructor mocks.
- Replace arrow-function constructor mock implementations with function-based implementations.
- Bring task retry fixture data in line with the graph resume retry counter shape.
Files changed:
.../cli/src/__tests__/experiment-finalize.test.ts | 19 +++++++++++++++++--
.../__tests__/extension-experiment-finalize.test.ts | 19 +++++++++++++++++--
packages/cli/src/__tests__/plugin-dev.test.ts | 19 +++++++++++++++++--
packages/cli/src/__tests__/project-resolver.test.ts | 17 ++++++++++++++++-
packages/cli/src/__tests__/task-plan.test.ts | 17 ++++++++++++++++-
packages/cli/src/__tests__/task-steer.test.ts | 17 ++++++++++++++++-
packages/cli/src/__tests__/update-cache.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/agent.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/backup.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/db.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/desktop.test.ts | 4 +++-
packages/cli/src/commands/__tests__/init.test.ts | 17 ++++++++++++++++-
.../src/commands/__tests__/memory-backup.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/message.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/node.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/plugin.test.ts | 19 +++++++++++++++++--
packages/cli/src/commands/__tests__/project.test.ts | 21 ++++++++++++++++++---
packages/cli/src/commands/__tests__/serve.test.ts | 17 ++++++++++++++++-
.../src/commands/__tests__/settings-export.test.ts | 17 ++++++++++++++++-
.../src/commands/__tests__/settings-import.test.ts | 17 ++++++++++++++++-
.../cli/src/commands/__tests__/settings.test.ts | 17 ++++++++++++++++-
packages/cli/src/commands/__tests__/task.test.ts | 2 ++
22 files changed, 331 insertions(+), 27 deletions(-)
Fusion-Task-Id: FN-6367
Fusion-Task-Lineage: d900dfe0-e286-4175-a5ba-7c319e2527b0
2026-06-13 09:14:02 -07:00
..
2026-06-13 09:14:02 -07:00
2026-06-04 23:56:10 -07:00
2026-04-08 13:31:07 -07:00
2026-04-23 23:02:36 -07:00
2026-04-14 12:45:15 -07:00
2026-05-04 23:47:26 -07:00
2026-05-20 20:05:08 -07:00
2026-06-03 17:22:11 -07:00
2026-05-17 22:47:53 -07:00
2026-04-28 18:23:21 -07:00
2026-04-23 15:53:47 -07:00
2026-04-23 23:02:36 -07:00
2026-06-01 09:05:18 -07:00
2026-06-05 23:06:46 -07:00
2026-05-26 21:57:31 -07:00
2026-06-05 23:06:46 -07:00
2026-05-11 21:48:26 -07:00
2026-04-09 15:49:42 -07:00
2026-05-01 12:21:52 -07:00
2026-05-23 04:18:55 -07:00
2026-05-14 04:42:32 -07:00
2026-04-23 23:02:36 -07:00
2026-05-29 08:25:38 -07:00
2026-06-06 01:01:24 -07:00
2026-05-04 23:59:52 -07:00
2026-05-09 14:41:58 -07:00
2026-05-13 21:41:14 -07:00
2026-06-03 22:31:23 -07:00
2026-04-28 23:23:34 -07:00
2026-06-01 18:52:28 -07:00
2026-06-01 14:39:09 -07:00
2026-06-01 19:40:28 -07:00
2026-06-13 04:44:51 -07:00
2026-06-03 09:25:56 -07:00
2026-04-10 12:47:46 -07:00
2026-06-13 06:12:09 -07:00
2026-06-06 01:01:24 -07:00
2026-05-28 21:23:48 -07:00
2026-06-11 09:51:49 -07:00
2026-05-13 06:29:36 -07:00
2026-04-26 00:00:49 -07:00
2026-06-05 23:06:46 -07:00
2026-04-08 11:00:32 -07:00
2026-06-05 01:53:42 -07:00
2026-06-04 23:41:30 -07:00
2026-04-24 08:55:02 -07:00
2026-04-27 23:27:27 -07:00
2026-06-05 11:12:40 +10:00
2026-06-06 00:09:53 -07:00
2026-06-10 01:07:48 -07:00
2026-05-28 14:50:15 -07:00