From 273be7882e0a7d02a935df9c75c1fafe0729fea5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 13 May 2026 05:24:35 +0100 Subject: [PATCH] test: add back byte snapshot --- test/unit/bundle.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/bundle.spec.ts b/test/unit/bundle.spec.ts index a541bcc2..aa73cef1 100644 --- a/test/unit/bundle.spec.ts +++ b/test/unit/bundle.spec.ts @@ -34,6 +34,9 @@ describe('project sizes', () => { it('default client bundle size', async () => { stats.client = await analyzeSizes(['**/*.js', '!_scripts/**'], publicDir) + expect + .soft(roundToKilobytes(stats.client.totalBytes)) + .toMatchInlineSnapshot(`"281k"`) expect.soft(stats.client.files.map(f => f.replace(/\..*\.js/, '.js').replace(/_scripts\/.*\.js/, '_scripts/script.js')).sort()) .toMatchInlineSnapshot(` [ -- knotmirror 0.0.1