@@ -36,6 +36,7 @@ describe('BundleTrackerPlugin bases tests', () => {
3636 plugins : [
3737 new BundleTrackerPlugin ( {
3838 path : OUTPUT_DIR ,
39+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
3940 } ) ,
4041 ] ,
4142 } ,
@@ -76,6 +77,7 @@ describe('BundleTrackerPlugin bases tests', () => {
7677 plugins : [
7778 new BundleTrackerPlugin ( {
7879 path : OUTPUT_DIR ,
80+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
7981 logTime : true ,
8082 } ) ,
8183 ] ,
@@ -108,6 +110,7 @@ describe('BundleTrackerPlugin bases tests', () => {
108110 plugins : [
109111 new BundleTrackerPlugin ( {
110112 path : OUTPUT_DIR ,
113+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
111114 publicPath : 'https://test.org/statics/' ,
112115 } ) ,
113116 ] ,
@@ -152,7 +155,7 @@ describe('BundleTrackerPlugin bases tests', () => {
152155 plugins : [
153156 new BundleTrackerPlugin ( {
154157 path : OUTPUT_DIR ,
155- filename : filename ,
158+ filename : path . join ( OUTPUT_DIR , filename ) ,
156159 } ) ,
157160 ] ,
158161 } ,
@@ -194,7 +197,7 @@ describe('BundleTrackerPlugin bases tests', () => {
194197 plugins : [
195198 new BundleTrackerPlugin ( {
196199 path : OUTPUT_DIR ,
197- filename : filename ,
200+ filename : path . join ( OUTPUT_DIR , filename ) ,
198201 } ) ,
199202 ] ,
200203 } ,
@@ -237,6 +240,7 @@ describe('BundleTrackerPlugin bases tests', () => {
237240 new BundleTrackerPlugin ( {
238241 path : OUTPUT_DIR ,
239242 publicPath : 'https://test.org/statics/' ,
243+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
240244 } ) ,
241245 ] ,
242246 } ,
@@ -271,6 +275,7 @@ describe('BundleTrackerPlugin bases tests', () => {
271275 new BundleTrackerPlugin ( {
272276 path : OUTPUT_DIR ,
273277 relativePath : true ,
278+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
274279 } ) ,
275280 ] ,
276281 } ,
@@ -339,21 +344,17 @@ describe('BundleTrackerPlugin bases tests', () => {
339344 path : OUTPUT_DIR ,
340345 relativePath : true ,
341346 includeParents : true ,
347+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
342348 } ) ,
343349 ] ,
344350 } ,
345351 {
346352 status : 'done' ,
347353 chunks : {
348- app1 : [ 'js/vendors.js' , 'js/ commons.js', 'js/app1.js' ] ,
349- app2 : [ 'js/vendors.js' , 'js/ commons.js', 'js/app2.js' ] ,
354+ app1 : [ 'js/commons.js' , 'js/app1.js' ] ,
355+ app2 : [ 'js/commons.js' , 'js/app2.js' ] ,
350356 } ,
351357 assets : {
352- 'js/2.js' : {
353- name : 'js/2.js' ,
354- path : 'js/2.js' ,
355- publicPath : 'http://localhost:3000/assets/js/2.js' ,
356- } ,
357358 'js/app1.js' : {
358359 name : 'js/app1.js' ,
359360 path : 'js/app1.js' ,
@@ -369,11 +370,6 @@ describe('BundleTrackerPlugin bases tests', () => {
369370 path : 'js/commons.js' ,
370371 publicPath : 'http://localhost:3000/assets/js/commons.js' ,
371372 } ,
372- 'js/vendors.js' : {
373- name : 'js/vendors.js' ,
374- path : 'js/vendors.js' ,
375- publicPath : 'http://localhost:3000/assets/js/vendors.js' ,
376- } ,
377373 } ,
378374 } ,
379375 'webpack-stats.json' ,
@@ -433,14 +429,15 @@ describe('BundleTrackerPlugin bases tests', () => {
433429 relativePath : true ,
434430 includeParents : true ,
435431 integrity : true ,
432+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
436433 } ) ,
437434 ] ,
438435 } ,
439436 {
440437 status : 'done' ,
441438 chunks : {
442- app1 : [ 'js/vendors.js' , 'js/ commons.js', 'js/app1.js' ] ,
443- appWithAssets : [ 'js/vendors.js' , 'js/ commons.js', 'styles.css' , 'js/appWithAssets.js' ] ,
439+ app1 : [ 'js/commons.js' , 'js/app1.js' ] ,
440+ appWithAssets : [ 'js/commons.js' , 'styles.css' , 'js/appWithAssets.js' ] ,
444441 } ,
445442 publicPath : 'http://localhost:3000/assets/' ,
446443 assets : {
@@ -450,18 +447,6 @@ describe('BundleTrackerPlugin bases tests', () => {
450447 integrity : expect . stringMatching ( / ^ ^ s h a 2 5 6 - [ \w + = / ] + s h a 3 8 4 - [ \w + = / ] + s h a 5 1 2 - [ \w + = / ] + $ / ) ,
451448 publicPath : 'http://localhost:3000/assets/js/commons.js' ,
452449 } ,
453- 'js/vendors.js' : {
454- name : 'js/vendors.js' ,
455- path : 'js/vendors.js' ,
456- integrity : expect . stringMatching ( / ^ ^ s h a 2 5 6 - [ \w + = / ] + s h a 3 8 4 - [ \w + = / ] + s h a 5 1 2 - [ \w + = / ] + $ / ) ,
457- publicPath : 'http://localhost:3000/assets/js/vendors.js' ,
458- } ,
459- 'js/2.js' : {
460- name : 'js/2.js' ,
461- path : 'js/2.js' ,
462- integrity : expect . stringMatching ( / ^ ^ s h a 2 5 6 - [ \w + = / ] + s h a 3 8 4 - [ \w + = / ] + s h a 5 1 2 - [ \w + = / ] + $ / ) ,
463- publicPath : 'http://localhost:3000/assets/js/2.js' ,
464- } ,
465450 'js/app1.js' : {
466451 name : 'js/app1.js' ,
467452 path : 'js/app1.js' ,
@@ -557,19 +542,15 @@ describe('BundleTrackerPlugin bases tests', () => {
557542 path : OUTPUT_DIR ,
558543 relativePath : true ,
559544 includeParents : true ,
545+ filename : path . join ( OUTPUT_DIR , 'webpack-stats.json' ) ,
560546 } ) ,
561547 ] ,
562548 } ,
563549 {
564550 status : 'done' ,
565551 chunks : {
566- app1 : [
567- expect . stringMatching ( / ^ j s \/ v e n d o r s .j s $ / ) ,
568- expect . stringMatching ( / ^ j s \/ c o m m o n s .j s $ / ) ,
569- expect . stringMatching ( / ^ j s \/ a p p 1 .j s $ / ) ,
570- ] ,
552+ app1 : [ expect . stringMatching ( / ^ j s \/ c o m m o n s .j s $ / ) , expect . stringMatching ( / ^ j s \/ a p p 1 .j s $ / ) ] ,
571553 appWithAssets : [
572- expect . stringMatching ( / ^ j s \/ v e n d o r s .j s $ / ) ,
573554 expect . stringMatching ( / ^ j s \/ c o m m o n s .j s $ / ) ,
574555 expect . stringMatching ( / ^ c s s \/ a p p W i t h A s s e t s .c s s $ / ) ,
575556 expect . stringMatching ( / ^ j s \/ a p p W i t h A s s e t s .j s $ / ) ,
@@ -581,16 +562,6 @@ describe('BundleTrackerPlugin bases tests', () => {
581562 path : 'js/commons.js' ,
582563 publicPath : 'http://localhost:3000/assets/js/commons.js' ,
583564 } ,
584- 'js/vendors.js' : {
585- name : 'js/vendors.js' ,
586- path : 'js/vendors.js' ,
587- publicPath : 'http://localhost:3000/assets/js/vendors.js' ,
588- } ,
589- 'js/2.js' : {
590- name : 'js/2.js' ,
591- path : 'js/2.js' ,
592- publicPath : 'http://localhost:3000/assets/js/2.js' ,
593- } ,
594565 'js/app1.js' : {
595566 name : 'js/app1.js' ,
596567 path : 'js/app1.js' ,
@@ -611,16 +582,6 @@ describe('BundleTrackerPlugin bases tests', () => {
611582 path : 'js/commons.js.gz' ,
612583 publicPath : 'http://localhost:3000/assets/js/commons.js.gz' ,
613584 } ,
614- 'js/vendors.js.gz' : {
615- name : 'js/vendors.js.gz' ,
616- path : 'js/vendors.js.gz' ,
617- publicPath : 'http://localhost:3000/assets/js/vendors.js.gz' ,
618- } ,
619- 'js/2.js.gz' : {
620- name : 'js/2.js.gz' ,
621- path : 'js/2.js.gz' ,
622- publicPath : 'http://localhost:3000/assets/js/2.js.gz' ,
623- } ,
624585 'js/app1.js.gz' : {
625586 name : 'js/app1.js.gz' ,
626587 path : 'js/app1.js.gz' ,
@@ -641,21 +602,11 @@ describe('BundleTrackerPlugin bases tests', () => {
641602 path : 'js/commons.js.br' ,
642603 publicPath : 'http://localhost:3000/assets/js/commons.js.br' ,
643604 } ,
644- 'js/2.js.br' : {
645- name : 'js/2.js.br' ,
646- path : 'js/2.js.br' ,
647- publicPath : 'http://localhost:3000/assets/js/2.js.br' ,
648- } ,
649605 'css/appWithAssets.css.br' : {
650606 name : 'css/appWithAssets.css.br' ,
651607 path : 'css/appWithAssets.css.br' ,
652608 publicPath : 'http://localhost:3000/assets/css/appWithAssets.css.br' ,
653609 } ,
654- 'js/vendors.js.br' : {
655- name : 'js/vendors.js.br' ,
656- path : 'js/vendors.js.br' ,
657- publicPath : 'http://localhost:3000/assets/js/vendors.js.br' ,
658- } ,
659610 'js/app1.js.br' : {
660611 name : 'js/app1.js.br' ,
661612 path : 'js/app1.js.br' ,
0 commit comments