@@ -5412,14 +5412,14 @@ func TestDuplicatePropertyWarning(t *testing.T) {
54125412 import './outside-node-modules'
54135413 import 'inside-node-modules'
54145414 ` ,
5415- "/outside-node-modules/index.js " : `
5416- console.log({ a: 1, a: 2 })
5415+ "/outside-node-modules/index.jsx " : `
5416+ console.log({ a: 1, a: 2 }, <div a2 a2={3}/> )
54175417 ` ,
54185418 "/outside-node-modules/package.json" : `
54195419 { "b": 1, "b": 2 }
54205420 ` ,
5421- "/node_modules/inside-node-modules/index.js " : `
5422- console.log({ c: 1, c: 2 })
5421+ "/node_modules/inside-node-modules/index.jsx " : `
5422+ console.log({ c: 1, c: 2 }, <div c2 c2={3}/> )
54235423 ` ,
54245424 "/node_modules/inside-node-modules/package.json" : `
54255425 { "d": 1, "d": 2 }
@@ -5430,8 +5430,10 @@ func TestDuplicatePropertyWarning(t *testing.T) {
54305430 Mode : config .ModeBundle ,
54315431 AbsOutputDir : "/out" ,
54325432 },
5433- expectedScanLog : `outside-node-modules/index.js: WARNING: Duplicate key "a" in object literal
5434- outside-node-modules/index.js: NOTE: The original key "a" is here:
5433+ expectedScanLog : `outside-node-modules/index.jsx: WARNING: Duplicate key "a" in object literal
5434+ outside-node-modules/index.jsx: NOTE: The original key "a" is here:
5435+ outside-node-modules/index.jsx: WARNING: Duplicate "a2" attribute in JSX element
5436+ outside-node-modules/index.jsx: NOTE: The original "a2" attribute is here:
54355437outside-node-modules/package.json: WARNING: Duplicate key "b" in object literal
54365438outside-node-modules/package.json: NOTE: The original key "b" is here:
54375439` ,
0 commit comments