@@ -5,11 +5,14 @@ const chokidar = require("chokidar");
5
5
const fs = require ( "graceful-fs" ) ;
6
6
const webpack = require ( "webpack" ) ;
7
7
const Server = require ( "../../lib/Server" ) ;
8
- const config = require ( "../fixtures/static -config/webpack.config" ) ;
8
+ const config = require ( "../fixtures/watch-files -config/webpack.config" ) ;
9
9
const runBrowser = require ( "../helpers/run-browser" ) ;
10
10
const port = require ( "../ports-map" ) [ "watch-files-option" ] ;
11
11
12
- const watchDir = path . resolve ( __dirname , "../fixtures/static-config/public" ) ;
12
+ const watchDir = path . resolve (
13
+ __dirname ,
14
+ "../fixtures/watch-files-config/public"
15
+ ) ;
13
16
14
17
describe ( "watchFiles option" , ( ) => {
15
18
describe ( "should work with string and path to file" , ( ) => {
@@ -55,7 +58,7 @@ describe("watchFiles option", () => {
55
58
pageErrors . push ( error ) ;
56
59
} ) ;
57
60
58
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
61
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
59
62
waitUntil : "networkidle0" ,
60
63
} ) ;
61
64
@@ -126,7 +129,7 @@ describe("watchFiles option", () => {
126
129
pageErrors . push ( error ) ;
127
130
} ) ;
128
131
129
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
132
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
130
133
waitUntil : "networkidle0" ,
131
134
} ) ;
132
135
@@ -197,7 +200,7 @@ describe("watchFiles option", () => {
197
200
pageErrors . push ( error ) ;
198
201
} ) ;
199
202
200
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
203
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
201
204
waitUntil : "networkidle0" ,
202
205
} ) ;
203
206
@@ -273,7 +276,7 @@ describe("watchFiles option", () => {
273
276
pageErrors . push ( error ) ;
274
277
} ) ;
275
278
276
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
279
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
277
280
waitUntil : "networkidle0" ,
278
281
} ) ;
279
282
@@ -349,7 +352,7 @@ describe("watchFiles option", () => {
349
352
pageErrors . push ( error ) ;
350
353
} ) ;
351
354
352
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
355
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
353
356
waitUntil : "networkidle0" ,
354
357
} ) ;
355
358
@@ -422,7 +425,7 @@ describe("watchFiles option", () => {
422
425
pageErrors . push ( error ) ;
423
426
} ) ;
424
427
425
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
428
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
426
429
waitUntil : "networkidle0" ,
427
430
} ) ;
428
431
@@ -503,7 +506,7 @@ describe("watchFiles option", () => {
503
506
pageErrors . push ( error ) ;
504
507
} ) ;
505
508
506
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
509
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
507
510
waitUntil : "networkidle0" ,
508
511
} ) ;
509
512
@@ -644,7 +647,7 @@ describe("watchFiles option", () => {
644
647
pageErrors . push ( error ) ;
645
648
} ) ;
646
649
647
- const response = await page . goto ( `http://127.0.0.1:${ port } /main ` , {
650
+ const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
648
651
waitUntil : "networkidle0" ,
649
652
} ) ;
650
653
0 commit comments