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