Skip to content

Commit

Permalink
test: update bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 11, 2023
1 parent 1c30d4a commit 99a12d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bundle.test.ts
Expand Up @@ -35,7 +35,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"300k"')

const modules = await analyzeSizes('node_modules/**/*', serverDir)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"1823k"')
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"1825k"')

const packages = modules.files
.filter(m => m.endsWith('package.json'))
Expand Down Expand Up @@ -74,7 +74,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"607k"')

const modules = await analyzeSizes('node_modules/**/*', serverDir)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"71.1k"')
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"73.7k"')

const packages = modules.files
.filter(m => m.endsWith('package.json'))
Expand Down

0 comments on commit 99a12d4

Please sign in to comment.