@@ -946,8 +946,8 @@ describe('TerserPlugin', () => {
946
946
}
947
947
948
948
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
949
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
950
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
949
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
950
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
951
951
952
952
await new Promise ( async ( resolve ) => {
953
953
const newStats = await compile ( compiler ) ;
@@ -1007,8 +1007,8 @@ describe('TerserPlugin', () => {
1007
1007
}
1008
1008
1009
1009
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1010
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1011
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1010
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1011
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1012
1012
1013
1013
await new Promise ( async ( resolve ) => {
1014
1014
const newStats = await compile ( compiler ) ;
@@ -1068,8 +1068,8 @@ describe('TerserPlugin', () => {
1068
1068
}
1069
1069
1070
1070
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1071
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1072
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1071
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1072
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1073
1073
1074
1074
new ModifyExistingAsset ( { name : 'js.js' } ) . apply ( compiler ) ;
1075
1075
@@ -1132,8 +1132,8 @@ describe('TerserPlugin', () => {
1132
1132
}
1133
1133
1134
1134
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1135
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1136
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1135
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1136
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1137
1137
1138
1138
await new Promise ( async ( resolve ) => {
1139
1139
const newStats = await compile ( compiler ) ;
@@ -1194,8 +1194,8 @@ describe('TerserPlugin', () => {
1194
1194
}
1195
1195
1196
1196
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1197
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1198
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1197
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1198
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1199
1199
1200
1200
new ModifyExistingAsset ( { name : 'js.js' } ) . apply ( compiler ) ;
1201
1201
@@ -1251,8 +1251,8 @@ describe('TerserPlugin', () => {
1251
1251
}
1252
1252
1253
1253
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1254
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1255
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1254
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1255
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1256
1256
1257
1257
await new Promise ( async ( resolve ) => {
1258
1258
const newStats = await compile ( compiler ) ;
@@ -1306,8 +1306,8 @@ describe('TerserPlugin', () => {
1306
1306
}
1307
1307
1308
1308
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1309
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1310
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1309
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1310
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1311
1311
1312
1312
new ModifyExistingAsset ( { name : 'two.js' , comment : true } ) . apply ( compiler ) ;
1313
1313
@@ -1367,8 +1367,8 @@ describe('TerserPlugin', () => {
1367
1367
}
1368
1368
1369
1369
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1370
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1371
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1370
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1371
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1372
1372
1373
1373
await new Promise ( async ( resolve ) => {
1374
1374
const newStats = await compile ( compiler ) ;
@@ -1426,8 +1426,8 @@ describe('TerserPlugin', () => {
1426
1426
}
1427
1427
1428
1428
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1429
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1430
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1429
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1430
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1431
1431
1432
1432
new ModifyExistingAsset ( { name : 'two.js' , comment : true } ) . apply ( compiler ) ;
1433
1433
@@ -1489,8 +1489,8 @@ describe('TerserPlugin', () => {
1489
1489
}
1490
1490
1491
1491
expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'assets' ) ;
1492
- expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1493
- expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1492
+ expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings ' ) ;
1493
+ expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors ' ) ;
1494
1494
1495
1495
await new Promise ( async ( resolve ) => {
1496
1496
const newStats = await compile ( compiler ) ;
0 commit comments