2024-08-11 04:54:13 +03:00
|
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
import { getBundleSize } from './utils/getBundleSize';
|
2024-07-18 14:43:58 +03:00
|
|
|
|
|
|
|
describe('zipObjectDeep bundle size', () => {
|
|
|
|
it('lodash-es', async () => {
|
|
|
|
const bundleSize = await getBundleSize('lodash-es', 'zipObjectDeep');
|
|
|
|
expect(bundleSize).toMatchInlineSnapshot(`7338`);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('es-toolkit/compat', async () => {
|
|
|
|
const bundleSize = await getBundleSize('es-toolkit/compat', 'zipObjectDeep');
|
2024-09-18 10:14:14 +03:00
|
|
|
expect(bundleSize).toMatchInlineSnapshot(`1022`);
|
2024-08-11 04:54:13 +03:00
|
|
|
});
|
|
|
|
});
|