From 23d59072bfc6cc8fc18c265e40411562df21e856 Mon Sep 17 00:00:00 2001 From: Ludovico Fischer Date: Tue, 21 Sep 2021 23:55:08 +0200 Subject: [PATCH] test: update snapshots --- .../test/__snapshots__/run.test.js.snap | 169 +++--------------- 1 file changed, 23 insertions(+), 146 deletions(-) diff --git a/packages/size-limit/test/__snapshots__/run.test.js.snap b/packages/size-limit/test/__snapshots__/run.test.js.snap index 1853115b..749c8a59 100644 --- a/packages/size-limit/test/__snapshots__/run.test.js.snap +++ b/packages/size-limit/test/__snapshots__/run.test.js.snap @@ -2,7 +2,7 @@ exports[`run allows to use peer dependencies in import 1`] = ` " - Size: 1.49 kB with all dependencies, minified and gzipped + Size: 1.18 kB with all dependencies, minified and gzipped " `; @@ -34,7 +34,7 @@ exports[`run returns zero bytes for empty file without gzip 1`] = ` exports[`run shows brotli text when brotli and gzip in config 1`] = ` " Size limit: 1 kB - Size: -53 B with all dependencies, minified and brotli + Size: -19 B with all dependencies, minified and brotli Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s @@ -45,7 +45,7 @@ exports[`run shows brotli text when brotli and gzip in config 1`] = ` exports[`run shows brotli text when only brotli in config 1`] = ` " Size limit: 1 kB - Size: -53 B with all dependencies, minified and brotli + Size: -19 B with all dependencies, minified and brotli Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s @@ -77,25 +77,22 @@ exports[`run shows debug 1`] = ` \\"path\\": \\"/tmp/\\" }, \\"optimization\\": { - \\"concatenateModules\\": true - }, - \\"resolve\\": { - \\"plugins\\": [ + \\"concatenateModules\\": true, + \\"minimizer\\": [ + \\"...\\", { - \\"topLevelLoader\\": {} + \\"options\\": { + \\"test\\": {}, + \\"parallel\\": true + } } ] }, - \\"resolveLoader\\": { - \\"plugins\\": [ - {} - ] - }, \\"module\\": { \\"rules\\": [ { \\"test\\": {}, - \\"use\\": \\"/node_modules/file-loader/dist/cjs.js\\" + \\"type\\": \\"asset/resource\\" }, { \\"test\\": {}, @@ -119,132 +116,12 @@ exports[`run shows debug 1`] = ` } ] }, - \\"plugins\\": [ - { - \\"pluginDescriptor\\": { - \\"name\\": \\"OptimizeCssAssetsWebpackPlugin\\" - }, - \\"options\\": { - \\"assetProcessors\\": [ - { - \\"phase\\": \\"compilation.optimize-chunk-assets\\", - \\"regExp\\": {} - } - ], - \\"assetNameRegExp\\": {}, - \\"cssProcessor\\": { - \\"version\\": \\"0.0.0\\", - \\"plugins\\": [ - { - \\"postcssPlugin\\": \\"postcss-discard-comments\\" - }, - { - \\"postcssPlugin\\": \\"postcss-minify-gradients\\" - }, - { - \\"postcssPlugin\\": \\"postcss-reduce-initial\\" - }, - { - \\"postcssPlugin\\": \\"postcss-svgo\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-display-values\\" - }, - { - \\"postcssPlugin\\": \\"postcss-reduce-transforms\\" - }, - { - \\"postcssPlugin\\": \\"postcss-colormin\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-timing-functions\\" - }, - { - \\"postcssPlugin\\": \\"postcss-calc\\" - }, - { - \\"postcssPlugin\\": \\"postcss-convert-values\\" - }, - { - \\"postcssPlugin\\": \\"postcss-ordered-values\\" - }, - { - \\"postcssPlugin\\": \\"postcss-minify-selectors\\" - }, - { - \\"postcssPlugin\\": \\"postcss-minify-params\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-charset\\" - }, - { - \\"postcssPlugin\\": \\"postcss-discard-overridden\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-string\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-unicode\\" - }, - { - \\"postcssPlugin\\": \\"postcss-minify-font-values\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-url\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-repeat-style\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-positions\\" - }, - { - \\"postcssPlugin\\": \\"postcss-normalize-whitespace\\" - }, - { - \\"postcssPlugin\\": \\"postcss-merge-longhand\\" - }, - { - \\"postcssPlugin\\": \\"postcss-discard-duplicates\\" - }, - { - \\"postcssPlugin\\": \\"postcss-merge-rules\\" - }, - { - \\"postcssPlugin\\": \\"postcss-discard-empty\\" - }, - { - \\"postcssPlugin\\": \\"postcss-unique-selectors\\" - }, - { - \\"postcssPlugin\\": \\"css-declaration-sorter\\" - }, - { - \\"postcssPlugin\\": \\"cssnano-util-raw-cache\\" - } - ] - }, - \\"cssProcessorOptions\\": {}, - \\"cssProcessorPluginOptions\\": {} - }, - \\"phaseAssetProcessors\\": { - \\"compilation.optimize-chunk-assets\\": [ - { - \\"phase\\": \\"compilation.optimize-chunk-assets\\", - \\"regExp\\": {} - } - ], - \\"compilation.optimize-assets\\": [], - \\"emit\\": [] - }, - \\"deleteAssetsMap\\": {} - } - ] + \\"plugins\\": [] }, \\"bundles\\": [ \\"/tmp/index.js\\" ], - \\"size\\": 31, + \\"size\\": 141, \\"loadTime\\": 0.01, \\"runTime\\": 1, \\"time\\": 1.01, @@ -255,9 +132,9 @@ exports[`run shows debug 1`] = ` \\"missed\\": false } - Package size is 169 B less than limit + Package size is 59 B less than limit Size limit: 200 B - Size: 31 B  with all dependencies, minified and gzipped + Size: 141 B with all dependencies, minified and gzipped Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s @@ -294,7 +171,7 @@ exports[`run shows error on time bigger than limit 1`] = ` " Total time limit has exceeded Time limit: 1 s - Size: 31 B  with all dependencies, minified and gzipped + Size: 141 B with all dependencies, minified and gzipped Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s @@ -307,7 +184,7 @@ exports[`run shows error on time bigger than limit. in silent mode 1`] = ` " Total time limit has exceeded Time limit: 1 s - Size: 31 B  with all dependencies, minified and gzipped + Size: 141 B with all dependencies, minified and gzipped Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s @@ -611,9 +488,9 @@ Check the real performance cost of your front-end project to users exports[`run works in integration test in watch 1`] = ` " - Package size is 169 B less than limit + Package size is 59 B less than limit Size limit: 200 B - Size: 31 B  with all dependencies, minified and gzipped + Size: 141 B with all dependencies, minified and gzipped Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s @@ -634,7 +511,7 @@ exports[`run works in integration test with JSON 1`] = ` { \\"name\\": \\"index.js\\", \\"passed\\": true, - \\"size\\": 31, + \\"size\\": 141, \\"running\\": 1, \\"loading\\": 0.01 } @@ -644,9 +521,9 @@ exports[`run works in integration test with JSON 1`] = ` exports[`run works in integration test with size 1`] = ` " - Package size is 169 B less than limit + Package size is 59 B less than limit Size limit: 200 B - Size: 31 B  with all dependencies, minified and gzipped + Size: 141 B with all dependencies, minified and gzipped Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s @@ -657,7 +534,7 @@ exports[`run works in integration test with size 1`] = ` exports[`run works in integration test with time 1`] = ` " Time limit: 2 s - Size: 31 B  with all dependencies, minified and gzipped + Size: 141 B with all dependencies, minified and gzipped Loading time: 10 ms on slow 3G Running time: 1 s  on Snapdragon 410 Total time: 1.1 s