import { describe, expect, it } from 'vitest';
import { getBundleSize } from './utils/getBundleSize';

describe('mapValues bundle size', () => {
  it('lodash-es', async () => {
    const bundleSize = await getBundleSize('lodash-es', 'mapValues');
    expect(bundleSize).toMatchInlineSnapshot(`16685`);
  });

  it('es-toolkit', async () => {
    const bundleSize = await getBundleSize('es-toolkit', 'mapValues');
    expect(bundleSize).toMatchInlineSnapshot(`138`);
  });

  it('es-toolkit/compat', async () => {
    const bundleSize = await getBundleSize('es-toolkit/compat', 'mapValues');
    expect(bundleSize).toMatchInlineSnapshot(`8221`);
  });
});
