From 161faa35f3e10d16feed222430183a17f55592e8 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Wed, 7 Sep 2022 16:03:58 +0200 Subject: [PATCH] Update tests --- fixtures/peer-esbuild-non-gzip/package.json | 2 +- fixtures/peer-esbuild/package.json | 2 +- packages/esbuild/test/index.test.js | 2 +- packages/size-limit/test/__snapshots__/run.test.js.snap | 8 ++++---- packages/webpack/test/index.test.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fixtures/peer-esbuild-non-gzip/package.json b/fixtures/peer-esbuild-non-gzip/package.json index 55364733..40c4ab10 100644 --- a/fixtures/peer-esbuild-non-gzip/package.json +++ b/fixtures/peer-esbuild-non-gzip/package.json @@ -13,7 +13,7 @@ "size-limit": [ { "import": "{ test }", - "limit": "41 B", + "limit": "5 B", "gzip": false } ] diff --git a/fixtures/peer-esbuild/package.json b/fixtures/peer-esbuild/package.json index bc7a26b7..822c01da 100644 --- a/fixtures/peer-esbuild/package.json +++ b/fixtures/peer-esbuild/package.json @@ -13,7 +13,7 @@ "size-limit": [ { "import": "{ test }", - "limit": "56 B" + "limit": "49 B" } ] } diff --git a/packages/esbuild/test/index.test.js b/packages/esbuild/test/index.test.js index a94f561a..8f389b17 100644 --- a/packages/esbuild/test/index.test.js +++ b/packages/esbuild/test/index.test.js @@ -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 () => { diff --git a/packages/size-limit/test/__snapshots__/run.test.js.snap b/packages/size-limit/test/__snapshots__/run.test.js.snap index 5c35abaa..c5fff105 100644 --- a/packages/size-limit/test/__snapshots__/run.test.js.snap +++ b/packages/size-limit/test/__snapshots__/run.test.js.snap @@ -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: 41 B - Size: 41 B with all dependencies and minified + Size limit: 5 B + Size: 5 B with all dependencies and minified " `; exports[`supports import and ignore for esbuild and gzip 1`] = ` " - Size limit: 56 B - Size: 56 B with all dependencies, minified and gzipped + Size limit: 49 B + Size: 49 B with all dependencies, minified and gzipped " `; diff --git a/packages/webpack/test/index.test.js b/packages/webpack/test/index.test.js index 24a74b1b..ebc90a88 100644 --- a/packages/webpack/test/index.test.js +++ b/packages/webpack/test/index.test.js @@ -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 } ] })