test: update bundle size

This commit is contained in:
Daniel Roe 2024-05-01 22:49:51 +01:00
parent eec84f5b24
commit 58349a4594
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -35,7 +35,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"208k"`)
const modules = await analyzeSizes('node_modules/**/*', serverDir)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1337k"`)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1338k"`)
const packages = modules.files
.filter(m => m.endsWith('package.json'))