es-toolkit/benchmarks/bundle-size/camelCase.spec.ts

15 lines
475 B
TypeScript
Raw Normal View History

2024-08-11 04:54:13 +03:00
import { describe, expect, it } from 'vitest';
import { getBundleSize } from './utils/getBundleSize';
2024-07-17 05:47:39 +03:00
describe('camelCase bundle size', () => {
it('lodash-es', async () => {
const bundleSize = await getBundleSize('lodash-es', 'camelCase');
expect(bundleSize).toMatchInlineSnapshot(`7293`);
});
it('es-toolkit', async () => {
const bundleSize = await getBundleSize('es-toolkit', 'camelCase');
expect(bundleSize).toMatchInlineSnapshot(`297`);
2024-08-11 04:54:13 +03:00
});
});