import { describe, expect, it } from 'vitest';
import { InMemoryMeter } from '../infrastructure/no-op-telemetry.js';

describe('InMemoryMeter', () => {
  it('accumulates counter values', () => {
    const meter = new InMemoryMeter();
    meter.counter('checkout.completed').add(1);
    meter.counter('checkout.completed').add(3);
    expect(meter.snapshot()).toEqual({ 'checkout.completed': 4 });
  });
});
