Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ludofischer committed Oct 2, 2021
1 parent b9baa77 commit 23d5907
Showing 1 changed file with 23 additions and 146 deletions.
169 changes: 23 additions & 146 deletions packages/size-limit/test/__snapshots__/run.test.js.snap
Expand Up @@ -2,7 +2,7 @@

exports[`run allows to use peer dependencies in import 1`] = `
"
Size: [1m1.49 kB[22m [90mwith all dependencies, minified and gzipped[39m
Size: [1m1.18 kB[22m [90mwith all dependencies, minified and gzipped[39m
"
`;
Expand Down Expand Up @@ -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: [32m[1m-53 B[22m[39m [90mwith all dependencies, minified and brotli[39m
Size: [32m[1m-19 B[22m[39m [90mwith all dependencies, minified and brotli[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand All @@ -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: [32m[1m-53 B[22m[39m [90mwith all dependencies, minified and brotli[39m
Size: [32m[1m-19 B[22m[39m [90mwith all dependencies, minified and brotli[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand Down Expand Up @@ -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\\": {},
Expand All @@ -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,
Expand All @@ -255,9 +132,9 @@ exports[`run shows debug 1`] = `
\\"missed\\": false
}
[42m[30mPackage size is 169 B less than limit[39m[49m
[42m[30mPackage size is 59 B less than limit[39m[49m
Size limit: 200 B
Size: [32m[1m31 B [22m[39m [90mwith all dependencies, minified and gzipped[39m
Size: [32m[1m141 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand Down Expand Up @@ -294,7 +171,7 @@ exports[`run shows error on time bigger than limit 1`] = `
"
Total time limit has exceeded
Time limit: 1 s
Size: [31m[1m31 B [22m[39m [90mwith all dependencies, minified and gzipped[39m
Size: [31m[1m141 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand All @@ -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: [31m[1m31 B [22m[39m [90mwith all dependencies, minified and gzipped[39m
Size: [31m[1m141 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand Down Expand Up @@ -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`] = `
"
[42m[30mPackage size is 169 B less than limit[39m[49m
[42m[30mPackage size is 59 B less than limit[39m[49m
Size limit: 200 B
Size: [32m[1m31 B [22m[39m [90mwith all dependencies, minified and gzipped[39m
Size: [32m[1m141 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand All @@ -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
}
Expand All @@ -644,9 +521,9 @@ exports[`run works in integration test with JSON 1`] = `
exports[`run works in integration test with size 1`] = `
"
[42m[30mPackage size is 169 B less than limit[39m[49m
[42m[30mPackage size is 59 B less than limit[39m[49m
Size limit: 200 B
Size: [32m[1m31 B [22m[39m [90mwith all dependencies, minified and gzipped[39m
Size: [32m[1m141 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand All @@ -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: [32m[1m31 B [22m[39m [90mwith all dependencies, minified and gzipped[39m
Size: [32m[1m141 B[22m[39m [90mwith all dependencies, minified and gzipped[39m
Loading time: 10 ms on slow 3G
Running time: 1 s  on Snapdragon 410
Total time: 1.1 s
Expand Down

0 comments on commit 23d5907

Please sign in to comment.