Skip to content

Commit 6a52dcc

Browse files
committed
test: unlink symlink in ng add base E2E test
Instead of attempting to delete all files within the directory, the created symlink can instead be removed on its own. This should prevent odd Windows failures in CI. (cherry picked from commit f05b053)
1 parent 9d0b671 commit 6a52dcc

File tree

1 file changed

+2
-2
lines changed
  • tests/legacy-cli/e2e/tests/commands/add

1 file changed

+2
-2
lines changed

tests/legacy-cli/e2e/tests/commands/add/base.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assetDir } from '../../../utils/assets';
2-
import { expectFileToExist, rimraf, symlinkFile } from '../../../utils/fs';
2+
import { deleteFile, expectFileToExist, symlinkFile } from '../../../utils/fs';
33
import { ng } from '../../../utils/process';
44
import { expectToFail } from '../../../utils/utils';
55

@@ -15,5 +15,5 @@ export default async function () {
1515
await expectToFail(() => ng('add', 'add-collection')); // File already exists.
1616

1717
// Cleanup the package
18-
await rimraf('node_modules/add-collection');
18+
await deleteFile('node_modules/add-collection');
1919
}

0 commit comments

Comments
 (0)