@@ -11,7 +11,7 @@ import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing';
1111import { HostTree } from '@angular-devkit/schematics' ;
1212import { SchematicTestRunner , UnitTestTree } from '@angular-devkit/schematics/testing/index.js' ;
1313import { resolve } from 'path' ;
14- import shx from 'shelljs ' ;
14+ import { rmSync } from 'node:fs ' ;
1515
1616describe ( 'control flow migration (ng update)' , ( ) => {
1717 let runner : SchematicTestRunner ;
@@ -54,17 +54,17 @@ describe('control flow migration (ng update)', () => {
5454 } ) ,
5555 ) ;
5656
57- previousWorkingDir = shx . pwd ( ) ;
57+ previousWorkingDir = process . cwd ( ) ;
5858 tmpDirPath = getSystemPath ( host . root ) ;
5959
6060 // Switch into the temporary directory path. This allows us to run
6161 // the schematic against our custom unit test tree.
62- shx . cd ( tmpDirPath ) ;
62+ process . chdir ( tmpDirPath ) ;
6363 } ) ;
6464
6565 afterEach ( ( ) => {
66- shx . cd ( previousWorkingDir ) ;
67- shx . rm ( '-r' , tmpDirPath ) ;
66+ process . chdir ( previousWorkingDir ) ;
67+ rmSync ( tmpDirPath , { recursive : true } ) ;
6868 } ) ;
6969
7070 describe ( 'ngIf' , ( ) => {
@@ -6874,17 +6874,17 @@ describe('control flow migration (ng generate)', () => {
68746874 } ) ,
68756875 ) ;
68766876
6877- previousWorkingDir = shx . pwd ( ) ;
6877+ previousWorkingDir = process . cwd ( ) ;
68786878 tmpDirPath = getSystemPath ( host . root ) ;
68796879
68806880 // Switch into the temporary directory path. This allows us to run
68816881 // the schematic against our custom unit test tree.
6882- shx . cd ( tmpDirPath ) ;
6882+ process . chdir ( tmpDirPath ) ;
68836883 } ) ;
68846884
68856885 afterEach ( ( ) => {
6886- shx . cd ( previousWorkingDir ) ;
6887- shx . rm ( '-r' , tmpDirPath ) ;
6886+ process . chdir ( previousWorkingDir ) ;
6887+ rmSync ( tmpDirPath , { recursive : true } ) ;
68886888 } ) ;
68896889
68906890 describe ( 'path' , ( ) => {
0 commit comments