@@ -10,6 +10,7 @@ const SockJS = require("sockjs-client");
10
10
const webpack = require ( "webpack" ) ;
11
11
const fs = require ( "graceful-fs" ) ;
12
12
const Server = require ( "../../lib/Server" ) ;
13
+ const HTMLGeneratorPlugin = require ( "../helpers/html-generator-plugin" ) ;
13
14
const reloadConfig = require ( "../fixtures/reload-config/webpack.config" ) ;
14
15
const runBrowser = require ( "../helpers/run-browser" ) ;
15
16
const port = require ( "../ports-map" ) [ "hot-and-live-reload" ] ;
@@ -248,7 +249,10 @@ describe("hot and live reload", () => {
248
249
`${ require . resolve ( "../../client-src/index.js" ) } ?hot=true` ,
249
250
require . resolve ( "../fixtures/reload-config/foo.js" ) ,
250
251
] ,
251
- plugins : [ new webpack . HotModuleReplacementPlugin ( ) ] ,
252
+ plugins : [
253
+ new webpack . HotModuleReplacementPlugin ( ) ,
254
+ new HTMLGeneratorPlugin ( ) ,
255
+ ] ,
252
256
} ,
253
257
options : {
254
258
client : false ,
@@ -461,7 +465,7 @@ describe("hot and live reload", () => {
461
465
}
462
466
} ) ;
463
467
464
- await page . goto ( `http://localhost:${ port } /main ${ mode . query || "" } ` , {
468
+ await page . goto ( `http://localhost:${ port } /${ mode . query || "" } ` , {
465
469
waitUntil : "networkidle0" ,
466
470
} ) ;
467
471
@@ -620,7 +624,7 @@ describe("simple hot config HMR plugin", () => {
620
624
pageErrors . push ( error ) ;
621
625
} ) ;
622
626
623
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
627
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
624
628
waitUntil : "networkidle0" ,
625
629
} ) ;
626
630
@@ -687,7 +691,7 @@ describe("simple hot config HMR plugin with already added HMR plugin", () => {
687
691
pageErrors . push ( error ) ;
688
692
} ) ;
689
693
690
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
694
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
691
695
waitUntil : "networkidle0" ,
692
696
} ) ;
693
697
@@ -818,7 +822,7 @@ describe("multi compiler hot config HMR plugin", () => {
818
822
pageErrors . push ( error ) ;
819
823
} ) ;
820
824
821
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
825
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
822
826
waitUntil : "networkidle0" ,
823
827
} ) ;
824
828
@@ -881,7 +885,7 @@ describe("hot disabled HMR plugin", () => {
881
885
pageErrors . push ( error ) ;
882
886
} ) ;
883
887
884
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
888
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
885
889
waitUntil : "networkidle0" ,
886
890
} ) ;
887
891
0 commit comments