File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/legacy-cli/e2e/tests/commands/add Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { appendFile } from 'node:fs/promises' ;
2- import { expectFileToMatch , rimraf } from '../../../utils/fs' ;
2+ import { expectFileToMatch } from '../../../utils/fs' ;
33import { getActivePackageManager , uninstallPackage } from '../../../utils/packages' ;
44import { ng } from '../../../utils/process' ;
55import { isPrereleaseCli } from '../../../utils/project' ;
66
77export default async function ( ) {
88 // forcibly remove in case another test doesn't clean itself up.
9- await rimraf ( 'node_modules/ @angular/localize') ;
9+ await uninstallPackage ( ' @angular/localize') ;
1010
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
1212 // `ng add` command itself and not the behavior of npm which may otherwise fail depending
1313 // on the npm version in use and the version specifier supplied in each test.
1414 if ( getActivePackageManager ( ) === 'npm' ) {
15- await appendFile ( '.npmrc' , '\nforce =true\n' ) ;
15+ await appendFile ( '.npmrc' , '\nlegacy-peer-deps =true\n' ) ;
1616 }
1717
1818 const tag = ( await isPrereleaseCli ( ) ) ? '@next' : '' ;
You can’t perform that action at this time.
0 commit comments