diff --git a/src/store.test.ts b/src/store.test.ts index d19e859..0e534d0 100644 --- a/src/store.test.ts +++ b/src/store.test.ts @@ -3,8 +3,18 @@ */ import { describe, it, expect, beforeEach, afterEach } from 'vitest'; -import { InMemoryEventStore, getStore, resetStore } from './store.js'; +import { + InMemoryEventStore, + getStore, + resetStore, +} from './store.js'; import { LogEvent } from './types.js'; +import { resetWorkerAnalytics } from './workerAnalytics.js'; +import { resetCrossReferenceManager } from './crossReferenceManager.js'; +import { resetHistoricalStore } from './historicalStore.js'; +import { resetErrorGroupManager } from './errorGrouping.js'; +import { resetRecoveryManager } from './tui/utils/recoveryPlaybook.js'; +import { resetCostTracker } from './tui/utils/costTracking.js'; describe('InMemoryEventStore', () => { let store: InMemoryEventStore; @@ -13,6 +23,16 @@ describe('InMemoryEventStore', () => { store = new InMemoryEventStore(); }); + afterEach(() => { + resetStore(); + resetWorkerAnalytics(); + resetCrossReferenceManager(); + resetHistoricalStore(); + resetErrorGroupManager(); + resetRecoveryManager(); + resetCostTracker(); + }); + const createEvent = (overrides: Partial = {}): LogEvent => ({ ts: Date.now(), worker: 'w-test',