@@ -1230,6 +1230,7 @@ let pluginTests = {
1230
1230
} catch ( e ) {
1231
1231
assert . deepStrictEqual ( e . warnings , [ ] )
1232
1232
assert . deepStrictEqual ( e . errors , [ {
1233
+ id : '' ,
1233
1234
pluginName : '' ,
1234
1235
text : 'Expected ";" but found "y"' ,
1235
1236
location : {
@@ -1250,6 +1251,7 @@ let pluginTests = {
1250
1251
async transformUndefinedDetailForWarning ( { esbuild } ) {
1251
1252
const result = await esbuild . transform ( 'typeof x == "null"' )
1252
1253
assert . deepStrictEqual ( result . warnings , [ {
1254
+ id : 'impossible-typeof' ,
1253
1255
pluginName : '' ,
1254
1256
text : 'The "typeof" operator will never evaluate to "null"' ,
1255
1257
location : {
@@ -1282,6 +1284,7 @@ let pluginTests = {
1282
1284
} catch ( e ) {
1283
1285
assert . deepStrictEqual ( e . warnings , [ ] )
1284
1286
assert . deepStrictEqual ( e . errors , [ {
1287
+ id : '' ,
1285
1288
pluginName : '' ,
1286
1289
text : 'Expected ";" but found "y"' ,
1287
1290
location : {
@@ -1306,6 +1309,7 @@ let pluginTests = {
1306
1309
logLevel : 'silent' ,
1307
1310
} )
1308
1311
assert . deepStrictEqual ( result . warnings , [ {
1312
+ id : 'impossible-typeof' ,
1309
1313
pluginName : '' ,
1310
1314
text : 'The "typeof" operator will never evaluate to "null"' ,
1311
1315
location : {
@@ -1427,6 +1431,7 @@ let pluginTests = {
1427
1431
assert . strictEqual ( e . warnings . length , 0 )
1428
1432
assert . strictEqual ( e . errors . length , 1 )
1429
1433
assert . deepStrictEqual ( e . errors [ 0 ] , {
1434
+ id : '' ,
1430
1435
pluginName : 'the-plugin' ,
1431
1436
text : 'some error' ,
1432
1437
location : {
@@ -1500,6 +1505,7 @@ let pluginTests = {
1500
1505
} )
1501
1506
assert . strictEqual ( result . warnings . length , 1 )
1502
1507
assert . deepStrictEqual ( result . warnings [ 0 ] , {
1508
+ id : '' ,
1503
1509
pluginName : 'other-plugin' ,
1504
1510
text : 'some warning' ,
1505
1511
location : {
@@ -1575,6 +1581,7 @@ let pluginTests = {
1575
1581
assert . strictEqual ( e . warnings . length , 0 )
1576
1582
assert . strictEqual ( e . errors . length , 1 )
1577
1583
assert . deepStrictEqual ( e . errors [ 0 ] , {
1584
+ id : '' ,
1578
1585
pluginName : 'the-plugin' ,
1579
1586
text : 'some error' ,
1580
1587
location : {
@@ -1647,6 +1654,7 @@ let pluginTests = {
1647
1654
} )
1648
1655
assert . strictEqual ( result . warnings . length , 1 )
1649
1656
assert . deepStrictEqual ( result . warnings [ 0 ] , {
1657
+ id : '' ,
1650
1658
pluginName : 'the-plugin' ,
1651
1659
text : 'some warning' ,
1652
1660
location : {
0 commit comments