2026-01-22 11:30:10 +01:00
|
|
|
/**
|
|
|
|
|
* @fileoverview Global test setup for Claudeman tests
|
|
|
|
|
*
|
2026-02-12 18:26:16 +01:00
|
|
|
* SAFETY: TmuxManager and ScreenManager have built-in test mode detection
|
|
|
|
|
* (via process.env.VITEST) that makes ALL shell commands no-ops.
|
|
|
|
|
* This means tests CANNOT kill, create, or interact with real tmux/screen
|
|
|
|
|
* sessions regardless of what the test code does.
|
2026-01-22 19:24:36 +01:00
|
|
|
*
|
2026-02-12 18:26:16 +01:00
|
|
|
* This setup file only handles mock/timer cleanup between tests.
|
2026-01-22 11:30:10 +01:00
|
|
|
*/
|
|
|
|
|
|
2026-02-12 18:26:16 +01:00
|
|
|
import { afterEach, vi } from 'vitest';
|
2026-01-22 11:30:10 +01:00
|
|
|
|
2026-01-30 22:25:59 +01:00
|
|
|
afterEach(() => {
|
|
|
|
|
vi.clearAllMocks();
|
|
|
|
|
vi.useRealTimers();
|
|
|
|
|
});
|