mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
9eb0604065
Remove all test-only DI parameters from handleSessionCommands (signature drops from ~30 params to 5: req, sessionName, logPath, sessionStore, invoke) and from the remaining sub-handlers (session-inventory, session-observability, session-replay, session-close, session-state). Migrate all 89 remaining node:test unit test files to vitest. Tests that passed DI overrides now use vi.mock instead. Update vitest.config.ts to include *.test.ts alongside *.vitest.ts, and remove the dual-runner node --test from package.json scripts. Add a permanent CI lint guard that fails if optional typeof DI seams reappear in production code. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>