Skip to content

Commit 5727f46

Browse files
committed
fixup! chore(tests): prefer --install-directory over PATH manipulation
1 parent 53e9c1d commit 5727f46

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/Disable.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ describe(`DisableCommand`, () => {
102102
await xfs.mkdirPromise(ppath.join(cwd, `switch/bin`), {recursive: true});
103103
await xfs.writeFilePromise(ppath.join(cwd, `switch/bin/yarn`), `hello`);
104104

105-
await xfs.linkPromise(
105+
await xfs.symlinkPromise(
106106
ppath.join(cwd, `switch/bin/yarn`),
107107
ppath.join(cwd, `yarn`),
108108
);
109109

110110
await expect(runCli(cwd, [`disable`, `--install-directory=${npath.fromPortablePath(cwd)}`])).resolves.toMatchObject({
111+
stdout: ``,
112+
stderr: expect.stringMatching(/^yarn is already installed in .+ and points to a Yarn Switch install - skipping\n$/),
111113
exitCode: 0,
112114
});
113115

0 commit comments

Comments
 (0)