File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { ng } from '../../utils/process';
2
2
import { copyProjectAsset } from '../../utils/assets' ;
3
3
import { expectFileToMatch , writeMultipleFiles } from '../../utils/fs' ;
4
4
import { updateJsonFile } from '../../utils/project' ;
5
+ import { getGlobalVariable } from '../../utils/env' ;
5
6
6
7
7
8
export default function ( ) {
@@ -32,6 +33,8 @@ export default function () {
32
33
/ _ _ w e b p a c k _ r e q u i r e _ _ \. p = " d e p l o y U r l \/ " ; / ) )
33
34
// verify slash is appended to the end of --deploy-url if missing
34
35
. then ( ( ) => ng ( 'build' , '--deploy-url=deployUrl' , '--extract-css=false' ) )
35
- . then ( ( ) => expectFileToMatch ( 'dist/inline.bundle.js' ,
36
- / _ _ w e b p a c k _ r e q u i r e _ _ \. p = " d e p l o y U r l \/ " ; / ) ) ;
36
+ // skip this in ejected tests
37
+ . then ( ( ) => getGlobalVariable ( 'argv' ) . eject
38
+ ? Promise . resolve ( )
39
+ : expectFileToMatch ( 'dist/inline.bundle.js' , / _ _ w e b p a c k _ r e q u i r e _ _ \. p = " d e p l o y U r l \/ " ; / ) ) ;
37
40
}
You can’t perform that action at this time.
0 commit comments