File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
const testServer = require ( '../helpers/test-server' ) ;
4
4
const config = require ( '../fixtures/provide-plugin-config/webpack.config' ) ;
5
5
const runBrowser = require ( '../helpers/run-browser' ) ;
6
+ const port = require ( '../ports-map' ) . ProvidePlugin ;
6
7
7
8
describe ( 'ProvidePlugin' , ( ) => {
8
9
describe ( 'inline' , ( ) => {
9
10
beforeAll ( ( done ) => {
10
11
const options = {
11
- port : 9000 ,
12
+ port,
12
13
host : '0.0.0.0' ,
13
14
inline : true ,
14
15
watchOptions : {
@@ -33,7 +34,7 @@ describe('ProvidePlugin', () => {
33
34
browser . close ( ) . then ( done ) ;
34
35
} ) ;
35
36
} ) ;
36
- page . goto ( ' http://localhost:9000 /main' ) ;
37
+ page . goto ( ` http://localhost:${ port } /main` ) ;
37
38
} ) ;
38
39
} ) ;
39
40
} ) ;
@@ -42,7 +43,7 @@ describe('ProvidePlugin', () => {
42
43
describe ( 'not inline' , ( ) => {
43
44
beforeAll ( ( done ) => {
44
45
const options = {
45
- port : 9000 ,
46
+ port,
46
47
host : '0.0.0.0' ,
47
48
inline : false ,
48
49
watchOptions : {
@@ -68,7 +69,7 @@ describe('ProvidePlugin', () => {
68
69
browser . close ( ) . then ( done ) ;
69
70
} ) ;
70
71
} ) ;
71
- page . goto ( ' http://localhost:9000 /main' ) ;
72
+ page . goto ( ` http://localhost:${ port } /main` ) ;
72
73
} ) ;
73
74
} ) ;
74
75
} ) ;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const portsList = {
34
34
'serverMode-option' : 1 ,
35
35
'sockPath-option' : 1 ,
36
36
'stats-option' : 1 ,
37
+ ProvidePlugin : 1 ,
37
38
} ;
38
39
39
40
let startPort = 8079 ;
You can’t perform that action at this time.
0 commit comments