diff --git a/tests/legacy-cli/e2e/tests/commands/add/base.ts b/tests/legacy-cli/e2e/tests/commands/add/base.ts index ba5978633225..f4e7048df6ac 100644 --- a/tests/legacy-cli/e2e/tests/commands/add/base.ts +++ b/tests/legacy-cli/e2e/tests/commands/add/base.ts @@ -1,5 +1,5 @@ import { assetDir } from '../../../utils/assets'; -import { expectFileToExist, rimraf, symlinkFile } from '../../../utils/fs'; +import { deleteFile, expectFileToExist, symlinkFile } from '../../../utils/fs'; import { ng } from '../../../utils/process'; import { expectToFail } from '../../../utils/utils'; @@ -15,5 +15,5 @@ export default async function () { await expectToFail(() => ng('add', 'add-collection')); // File already exists. // Cleanup the package - await rimraf('node_modules/add-collection'); + await deleteFile('node_modules/add-collection'); }