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

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

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