@@ -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' , ( ) => {
@@ -6912,17 +6912,17 @@ describe('control flow migration (ng generate)', () => {
69126912 } ) ,
69136913 ) ;
69146914
6915- previousWorkingDir = shx . pwd ( ) ;
6915+ previousWorkingDir = process . cwd ( ) ;
69166916 tmpDirPath = getSystemPath ( host . root ) ;
69176917
69186918 // Switch into the temporary directory path. This allows us to run
69196919 // the schematic against our custom unit test tree.
6920- shx . cd ( tmpDirPath ) ;
6920+ process . chdir ( tmpDirPath ) ;
69216921 } ) ;
69226922
69236923 afterEach ( ( ) => {
6924- shx . cd ( previousWorkingDir ) ;
6925- shx . rm ( '-r' , tmpDirPath ) ;
6924+ process . chdir ( previousWorkingDir ) ;
6925+ rmSync ( tmpDirPath , { recursive : true } ) ;
69266926 } ) ;
69276927
69286928 describe ( 'path' , ( ) => {
0 commit comments