File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const { unlink } = require('fs');
4
4
const { join, resolve } = require ( 'path' ) ;
5
5
const execa = require ( 'execa' ) ;
6
6
const testBin = require ( '../helpers/test-bin' ) ;
7
+ const port1 = require ( '../ports-map' ) . cli [ 0 ] ;
7
8
8
9
const httpsCertificateDirectory = resolve (
9
10
__dirname ,
@@ -30,11 +31,11 @@ describe('CLI', () => {
30
31
} ) ;
31
32
32
33
it ( '--quiet' , async ( done ) => {
33
- const output = await testBin ( ' --quiet' ) ;
34
+ const output = await testBin ( ` --quiet --port ${ port1 } ` ) ;
34
35
expect ( output . code ) . toEqual ( 0 ) ;
35
36
expect ( output . stdout . split ( '\n' ) . length === 3 ) . toBe ( true ) ;
36
37
expect (
37
- output . stdout . includes ( ' Project is running at http://localhost:8080/' )
38
+ output . stdout . includes ( ` Project is running at http://localhost:${ port1 } /` )
38
39
) . toBe ( true ) ;
39
40
expect ( output . stdout . includes ( 'webpack output is served from /' ) ) . toBe (
40
41
true
You can’t perform that action at this time.
0 commit comments