File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
tests/legacy-cli/e2e/tests/misc Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- import { createDir , writeFile } from '../../utils/fs' ;
2
- import { expectToFail } from '../../utils/utils' ;
3
1
import { getGlobalVariable } from '../../utils/env' ;
2
+ import { createDir , writeFile } from '../../utils/fs' ;
4
3
import { ng , silentGit } from '../../utils/process' ;
5
- import { prepareProjectForE2e } from '../../utils/project'
4
+ import { prepareProjectForE2e } from '../../utils/project' ;
6
5
7
6
export default async function ( ) {
8
7
process . chdir ( getGlobalVariable ( 'tmp-root' ) ) ;
@@ -19,8 +18,8 @@ export default async function() {
19
18
await writeFile ( '../added.ts' , 'console.log(\'created\');\n' ) ;
20
19
await silentGit ( 'add' , '../added.ts' ) ;
21
20
22
- const { message } = await expectToFail ( ( ) => ng ( 'update' , '--all' ) ) ;
23
- if ( message && message . includes ( 'Repository is not clean.' ) ) {
21
+ const { stderr } = await ng ( 'update' , '--all' , '--force' ) ;
22
+ if ( stderr && stderr . includes ( 'Repository is not clean.' ) ) {
24
23
throw new Error ( 'Expected clean repository' ) ;
25
24
}
26
25
}
You can’t perform that action at this time.
0 commit comments