Skip to content

Commit f05b053

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.
1 parent d486c19 commit f05b053

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

Lines changed: 2 additions & 2 deletions
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)