File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ const isWebpack5 = require('../helpers/isWebpack5');
10
10
let runCLITest = describe ;
11
11
let basePath ;
12
12
try {
13
- basePath = path . join ( require . resolve ( 'webpack-dev-server' ) , '..' , '..' ) ;
13
+ basePath = path
14
+ . join ( require . resolve ( 'webpack-dev-server' ) , '..' , '..' )
15
+ . replace ( / \\ / g, '/' ) ;
14
16
} catch {
15
17
runCLITest = describe . skip ;
16
18
}
@@ -36,7 +38,7 @@ runCLITest('CLI', () => {
36
38
'$1 Thu Jan 01 1970 <CLR=BOLD>00:00:00</CLR> GMT'
37
39
)
38
40
. replace ( / w e b p a c k [ ^ ) ] + / g, 'webpack x.x.x' )
39
- . replace ( new RegExp ( quotemeta ( basePath . replace ( / \\ / g , '/' ) ) , 'g' ) , 'Xdir' )
41
+ . replace ( new RegExp ( quotemeta ( basePath ) , 'g' ) , 'Xdir' )
40
42
. replace ( / [ \\ / ] s t a t i c / , '/static' )
41
43
. replace ( / ( H a s h : ) [ a - z 0 - 9 ] + / g, '$1 X' )
42
44
. replace ( / d e p e n d e n c i e s : X m s / g, '' )
You can’t perform that action at this time.
0 commit comments