Skip to content

Commit f98c448

Browse files
test: update
1 parent ec6b8b3 commit f98c448

9 files changed

+941
-1051
lines changed

test/__snapshots__/TerserPlugin.test.js.snap

Lines changed: 232 additions & 232 deletions
Large diffs are not rendered by default.

test/__snapshots__/exclude-option.test.js.snap

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
exports[`exclude option should match snapshot for a single RegExp value: assets 1`] = `
44
Object {
5-
"entry.js": "(()=>{var r={921:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
5+
"entry.js": "(()=>{var r={921(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
66
"excluded1.js": "/******/ (() => { // webpackBootstrap
77
/******/ var __webpack_modules__ = ({
88
9-
/***/ 508:
10-
/***/ ((module) => {
9+
/***/ 508
10+
(module) {
1111
1212
module.exports = function Bar1() {
1313
const b = 2 + 2;
1414
console.log(b + 1 + 2);
1515
};
1616
17-
/***/ })
17+
/***/ }
1818
1919
/******/ });
2020
/************************************************************************/
@@ -51,7 +51,7 @@ module.exports = function Bar1() {
5151
/******/
5252
/******/ })()
5353
;",
54-
"excluded2.js": "(()=>{var r={93:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(93)})();",
54+
"excluded2.js": "(()=>{var r={93(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(93)})();",
5555
}
5656
`;
5757

@@ -61,19 +61,19 @@ exports[`exclude option should match snapshot for a single RegExp value: warning
6161

6262
exports[`exclude option should match snapshot for a single String value: assets 1`] = `
6363
Object {
64-
"entry.js": "(()=>{var r={921:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
64+
"entry.js": "(()=>{var r={921(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
6565
"excluded1.js": "/******/ (() => { // webpackBootstrap
6666
/******/ var __webpack_modules__ = ({
6767
68-
/***/ 508:
69-
/***/ ((module) => {
68+
/***/ 508
69+
(module) {
7070
7171
module.exports = function Bar1() {
7272
const b = 2 + 2;
7373
console.log(b + 1 + 2);
7474
};
7575
76-
/***/ })
76+
/***/ }
7777
7878
/******/ });
7979
/************************************************************************/
@@ -110,7 +110,7 @@ module.exports = function Bar1() {
110110
/******/
111111
/******/ })()
112112
;",
113-
"excluded2.js": "(()=>{var r={93:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(93)})();",
113+
"excluded2.js": "(()=>{var r={93(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(93)})();",
114114
}
115115
`;
116116

@@ -120,19 +120,19 @@ exports[`exclude option should match snapshot for a single String value: warning
120120

121121
exports[`exclude option should match snapshot for multiple RegExp values: assets 1`] = `
122122
Object {
123-
"entry.js": "(()=>{var r={921:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
123+
"entry.js": "(()=>{var r={921(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
124124
"excluded1.js": "/******/ (() => { // webpackBootstrap
125125
/******/ var __webpack_modules__ = ({
126126
127-
/***/ 508:
128-
/***/ ((module) => {
127+
/***/ 508
128+
(module) {
129129
130130
module.exports = function Bar1() {
131131
const b = 2 + 2;
132132
console.log(b + 1 + 2);
133133
};
134134
135-
/***/ })
135+
/***/ }
136136
137137
/******/ });
138138
/************************************************************************/
@@ -172,15 +172,15 @@ module.exports = function Bar1() {
172172
"excluded2.js": "/******/ (() => { // webpackBootstrap
173173
/******/ var __webpack_modules__ = ({
174174
175-
/***/ 93:
176-
/***/ ((module) => {
175+
/***/ 93
176+
(module) {
177177
178178
module.exports = function Bar2() {
179179
const b = 2 + 2;
180180
console.log(b + 1 + 2);
181181
};
182182
183-
/***/ })
183+
/***/ }
184184
185185
/******/ });
186186
/************************************************************************/
@@ -226,19 +226,19 @@ exports[`exclude option should match snapshot for multiple RegExp values: warnin
226226

227227
exports[`exclude option should match snapshot for multiple String values: assets 1`] = `
228228
Object {
229-
"entry.js": "(()=>{var r={921:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
229+
"entry.js": "(()=>{var r={921(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(921)})();",
230230
"excluded1.js": "/******/ (() => { // webpackBootstrap
231231
/******/ var __webpack_modules__ = ({
232232
233-
/***/ 508:
234-
/***/ ((module) => {
233+
/***/ 508
234+
(module) {
235235
236236
module.exports = function Bar1() {
237237
const b = 2 + 2;
238238
console.log(b + 1 + 2);
239239
};
240240
241-
/***/ })
241+
/***/ }
242242
243243
/******/ });
244244
/************************************************************************/
@@ -278,15 +278,15 @@ module.exports = function Bar1() {
278278
"excluded2.js": "/******/ (() => { // webpackBootstrap
279279
/******/ var __webpack_modules__ = ({
280280
281-
/***/ 93:
282-
/***/ ((module) => {
281+
/***/ 93
282+
(module) {
283283
284284
module.exports = function Bar2() {
285285
const b = 2 + 2;
286286
console.log(b + 1 + 2);
287287
};
288288
289-
/***/ })
289+
/***/ }
290290
291291
/******/ });
292292
/************************************************************************/

test/__snapshots__/extractComments-option.test.js.snap

Lines changed: 524 additions & 629 deletions
Large diffs are not rendered by default.

test/__snapshots__/include-option.test.js.snap

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Object {
55
"entry.js": "/******/ (() => { // webpackBootstrap
66
/******/ var __webpack_modules__ = ({
77
8-
/***/ 921:
9-
/***/ ((module) => {
8+
/***/ 921
9+
(module) {
1010
1111
// foo
1212
/* @preserve*/
@@ -19,7 +19,7 @@ module.exports = function Foo() {
1919
};
2020
2121
22-
/***/ })
22+
/***/ }
2323
2424
/******/ });
2525
/************************************************************************/
@@ -56,20 +56,20 @@ module.exports = function Foo() {
5656
/******/
5757
/******/ })()
5858
;",
59-
"included1.js": "(()=>{var r={46:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
59+
"included1.js": "(()=>{var r={46(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
6060
"included2.js": "/******/ (() => { // webpackBootstrap
6161
/******/ var __webpack_modules__ = ({
6262
63-
/***/ 515:
64-
/***/ ((module) => {
63+
/***/ 515
64+
(module) {
6565
6666
module.exports = function Bar2() {
6767
const b = 2 + 2;
6868
console.log(b + 1 + 2);
6969
};
7070
7171
72-
/***/ })
72+
/***/ }
7373
7474
/******/ });
7575
/************************************************************************/
@@ -118,8 +118,8 @@ Object {
118118
"entry.js": "/******/ (() => { // webpackBootstrap
119119
/******/ var __webpack_modules__ = ({
120120
121-
/***/ 921:
122-
/***/ ((module) => {
121+
/***/ 921
122+
(module) {
123123
124124
// foo
125125
/* @preserve*/
@@ -132,7 +132,7 @@ module.exports = function Foo() {
132132
};
133133
134134
135-
/***/ })
135+
/***/ }
136136
137137
/******/ });
138138
/************************************************************************/
@@ -169,20 +169,20 @@ module.exports = function Foo() {
169169
/******/
170170
/******/ })()
171171
;",
172-
"included1.js": "(()=>{var r={46:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
172+
"included1.js": "(()=>{var r={46(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
173173
"included2.js": "/******/ (() => { // webpackBootstrap
174174
/******/ var __webpack_modules__ = ({
175175
176-
/***/ 515:
177-
/***/ ((module) => {
176+
/***/ 515
177+
(module) {
178178
179179
module.exports = function Bar2() {
180180
const b = 2 + 2;
181181
console.log(b + 1 + 2);
182182
};
183183
184184
185-
/***/ })
185+
/***/ }
186186
187187
/******/ });
188188
/************************************************************************/
@@ -231,8 +231,8 @@ Object {
231231
"entry.js": "/******/ (() => { // webpackBootstrap
232232
/******/ var __webpack_modules__ = ({
233233
234-
/***/ 921:
235-
/***/ ((module) => {
234+
/***/ 921
235+
(module) {
236236
237237
// foo
238238
/* @preserve*/
@@ -245,7 +245,7 @@ module.exports = function Foo() {
245245
};
246246
247247
248-
/***/ })
248+
/***/ }
249249
250250
/******/ });
251251
/************************************************************************/
@@ -282,8 +282,8 @@ module.exports = function Foo() {
282282
/******/
283283
/******/ })()
284284
;",
285-
"included1.js": "(()=>{var r={46:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
286-
"included2.js": "(()=>{var r={515:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(515)})();",
285+
"included1.js": "(()=>{var r={46(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
286+
"included2.js": "(()=>{var r={515(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(515)})();",
287287
}
288288
`;
289289

@@ -296,8 +296,8 @@ Object {
296296
"entry.js": "/******/ (() => { // webpackBootstrap
297297
/******/ var __webpack_modules__ = ({
298298
299-
/***/ 921:
300-
/***/ ((module) => {
299+
/***/ 921
300+
(module) {
301301
302302
// foo
303303
/* @preserve*/
@@ -310,7 +310,7 @@ module.exports = function Foo() {
310310
};
311311
312312
313-
/***/ })
313+
/***/ }
314314
315315
/******/ });
316316
/************************************************************************/
@@ -347,8 +347,8 @@ module.exports = function Foo() {
347347
/******/
348348
/******/ })()
349349
;",
350-
"included1.js": "(()=>{var r={46:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
351-
"included2.js": "(()=>{var r={515:r=>{r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(515)})();",
350+
"included1.js": "(()=>{var r={46(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(46)})();",
351+
"included2.js": "(()=>{var r={515(r){r.exports=function(){console.log(7)}}},o={};(function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports})(515)})();",
352352
}
353353
`;
354354

0 commit comments

Comments
 (0)