Commit 9cdfc96 1 parent bb18bc7 commit 9cdfc96 Copy full SHA for 9cdfc96
File tree 1 file changed +4
-4
lines changed
tests/legacy-cli/e2e/tests/commands/add
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { appendFile } from 'node:fs/promises' ;
2
- import { expectFileToMatch , rimraf } from '../../../utils/fs' ;
2
+ import { expectFileToMatch } from '../../../utils/fs' ;
3
3
import { getActivePackageManager , uninstallPackage } from '../../../utils/packages' ;
4
4
import { ng } from '../../../utils/process' ;
5
5
import { isPrereleaseCli } from '../../../utils/project' ;
6
6
7
7
export default async function ( ) {
8
8
// forcibly remove in case another test doesn't clean itself up.
9
- await rimraf ( 'node_modules/ @angular/localize') ;
9
+ await uninstallPackage ( ' @angular/localize') ;
10
10
11
- // If using npm, enable the force option to allow testing the output behavior of the
11
+ // If using npm, enable the legacy-peer-deps option to allow testing the output behavior of the
12
12
// `ng add` command itself and not the behavior of npm which may otherwise fail depending
13
13
// on the npm version in use and the version specifier supplied in each test.
14
14
if ( getActivePackageManager ( ) === 'npm' ) {
15
- await appendFile ( '.npmrc' , '\nforce =true\n' ) ;
15
+ await appendFile ( '.npmrc' , '\nlegacy-peer-deps =true\n' ) ;
16
16
}
17
17
18
18
const tag = ( await isPrereleaseCli ( ) ) ? '@next' : '' ;
You can’t perform that action at this time.
0 commit comments