import ExceptionTracker from '../ExceptionTracker'; describe('ExceptionTracker', () => { it('accepts context and exceptions without retaining or serializing payloads', () => { const context = { accountId: 42, token: '[REDACTED]' }; const exception = new Error('local-only failure'); expect(() => { ExceptionTracker.setContext('operation', context); ExceptionTracker.captureException(exception); }).not.toThrow(); expect(Object.keys(ExceptionTracker)).toEqual([ 'setContext', 'captureException', ]); expect(JSON.stringify(ExceptionTracker)).toBe('{}'); }); });