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-05 22:28:50 -07:00
2026-06-02 21:54:14 -07:00
2026-06-13 06:12:09 -07:00
2026-05-30 08:39:38 -07:00
2026-05-27 21:31:13 -07:00
2026-05-10 06:14:19 -07:00
2026-05-10 06:14:19 -07:00
2026-06-03 09:25:56 -07:00
2026-06-07 23:57:02 -07:00
2026-05-11 13:36:51 +02:00
2026-05-04 22:17:10 -07:00
2026-06-12 21:50:49 -07:00
2026-06-13 09:14:02 -07:00
2026-05-10 23:36:10 -07:00
2026-06-13 09:14:02 -07:00
2026-05-17 18:46:42 -07:00
2026-05-19 06:51:26 -07:00
2026-05-18 23:50:00 -07:00
2026-06-07 18:51:46 -07:00
2026-06-07 18:51:46 -07:00
2026-05-07 00:05:34 -07:00
2026-05-12 07:47:10 -07:00
2026-06-03 22:31:23 -07:00
2026-06-09 08:19:41 -07:00
2026-05-15 21:08:05 -07:00
2026-06-09 22:11:21 -07:00
2026-06-07 18:51:46 -07:00
2026-05-29 08:25:38 -07:00
2026-05-28 19:44:15 -07:00
2026-06-13 07:38:54 -07:00
2026-06-13 09:14:02 -07:00
2026-06-01 19:40:28 -07:00
2026-06-13 04:44:51 -07:00
2026-06-10 18:06:51 -07:00
2026-06-13 06:12:09 -07:00
2026-06-06 00:09:53 -07:00
2026-05-01 23:35:44 -07:00
2026-06-13 09:14:02 -07:00
2026-05-09 19:41:09 -07:00
2026-06-05 13:58:34 -07:00
2026-05-06 09:43:51 -07:00
2026-04-25 20:07:49 -07:00
2026-05-23 17:07:14 -07:00
2026-06-13 09:14:02 -07:00
2026-06-10 01:07:48 -07:00
2026-06-13 09:14:02 -07:00
2026-06-13 09:14:02 -07:00
2026-04-29 08:15:38 -07:00
2026-05-16 18:40:04 -07:00