feat(core-testing): add RecordingAnalytics test double

Implements IAnalytics with recorded arrays (tracked, identified,
pageViewed) and flush() that drains the buffer. Mirrors the pattern
established by RecordingAuditLog; inline type aliases avoid a
build-graph cycle with @repo/core-analytics.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 11:35:32 +00:00
parent 1434fe9d82
commit 67879ffad2
3 changed files with 120 additions and 0 deletions

View File

@@ -5,3 +5,9 @@ export { RecordingJobQueue } from "./recording-job-queue";
export { RecordingEventBus } from "./recording-event-bus";
export { RecordingRealtimeBroadcaster } from "./recording-realtime-broadcaster";
export { RecordingAuditLog } from "./recording-audit-log";
export {
RecordingAnalytics,
type RecordedTrack,
type RecordedIdentify,
type RecordedPageView,
} from "./recording-analytics";