Skip to content

Commit 4d9feb0

Browse files
committed
test: update bundle size test
1 parent ff2e778 commit 4d9feb0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/bundle.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
2323
const [clientStats, clientStatsInlined] = await Promise.all((['.output', '.output-inline'])
2424
.map(outputDir => analyzeSizes(['**/*.js'], join(rootDir, outputDir, 'public'))))
2525

26-
expect.soft(roundToKilobytes(clientStats!.totalBytes)).toMatchInlineSnapshot(`"112k"`)
27-
expect.soft(roundToKilobytes(clientStatsInlined!.totalBytes)).toMatchInlineSnapshot(`"112k"`)
26+
expect.soft(roundToKilobytes(clientStats!.totalBytes)).toMatchInlineSnapshot(`"113k"`)
27+
expect.soft(roundToKilobytes(clientStatsInlined!.totalBytes)).toMatchInlineSnapshot(`"113k"`)
2828

2929
const files = new Set([...clientStats!.files, ...clientStatsInlined!.files].map(f => f.replace(/\..*\.js/, '.js')))
3030

@@ -38,7 +38,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
3838
it('default client bundle size (pages)', async () => {
3939
const clientStats = await analyzeSizes(['**/*.js'], join(pagesRootDir, '.output/public'))
4040

41-
expect.soft(roundToKilobytes(clientStats!.totalBytes)).toMatchInlineSnapshot(`"170k"`)
41+
expect.soft(roundToKilobytes(clientStats!.totalBytes)).toMatchInlineSnapshot(`"171k"`)
4242

4343
const files = clientStats!.files.map(f => f.replace(/\..*\.js/, '.js'))
4444

@@ -61,7 +61,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
6161
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"194k"`)
6262

6363
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
64-
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1409k"`)
64+
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1410k"`)
6565

6666
const packages = modules.files
6767
.filter(m => m.endsWith('package.json'))
@@ -95,7 +95,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
9595
const serverDir = join(rootDir, '.output-inline/server')
9696

9797
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
98-
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"548k"`)
98+
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"549k"`)
9999

100100
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
101101
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"82.0k"`)
@@ -120,7 +120,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
120120
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"289k"`)
121121

122122
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
123-
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1420k"`)
123+
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1421k"`)
124124

125125
const packages = modules.files
126126
.filter(m => m.endsWith('package.json'))

0 commit comments

Comments
 (0)