Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 7, 2022
1 parent b57476d commit 161faa3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion fixtures/peer-esbuild-non-gzip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"size-limit": [
{
"import": "{ test }",
"limit": "41 B",
"limit": "5 B",
"gzip": false
}
]
Expand Down
2 changes: 1 addition & 1 deletion fixtures/peer-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"size-limit": [
{
"import": "{ test }",
"limit": "56 B"
"limit": "49 B"
}
]
}
2 changes: 1 addition & 1 deletion packages/esbuild/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ it('supports ignore', async () => {
checks: [{ files: fixture('big.js'), ignore: ['redux'] }]
}
await run(config)
expect(config.checks[0].size).toBe(241)
expect(config.checks[0].size).toBe(233)
})

it('supports custom esbuild config', async () => {
Expand Down
8 changes: 4 additions & 4 deletions packages/size-limit/test/__snapshots__/run.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -335,16 +335,16 @@ Check the real performance cost of your front-end project to users

exports[`supports import and ignore for esbuild 1`] = `
"
Size limit: [32m[1m41 B[22m[39m
Size: [32m[1m41 B[22m[39m [90mwith all dependencies and minified[39m
Size limit: [32m[1m5 B[22m[39m
Size: [32m[1m5 B[22m[39m [90mwith all dependencies and minified[39m
"
`;

exports[`supports import and ignore for esbuild and gzip 1`] = `
"
Size limit: [32m[1m56 B[22m[39m
Size: [32m[1m56 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Size limit: [32m[1m49 B[22m[39m
Size: [32m[1m49 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
"
`;
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ it('uses webpack to make bundle', async () => {
webpackOutput: config.checks[0].webpackOutput,
webpackConfig: config.checks[0].webpackConfig,
bundles: [join(config.checks[0].webpackOutput, 'index.js')],
size: 2165
size: 2163
}
]
})
Expand Down

0 comments on commit 161faa3

Please sign in to comment.