We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--install-directory
PATH
1 parent 53e9c1d commit 5727f46Copy full SHA for 5727f46
1 file changed
tests/Disable.test.ts
@@ -102,12 +102,14 @@ describe(`DisableCommand`, () => {
102
await xfs.mkdirPromise(ppath.join(cwd, `switch/bin`), {recursive: true});
103
await xfs.writeFilePromise(ppath.join(cwd, `switch/bin/yarn`), `hello`);
104
105
- await xfs.linkPromise(
+ await xfs.symlinkPromise(
106
ppath.join(cwd, `switch/bin/yarn`),
107
ppath.join(cwd, `yarn`),
108
);
109
110
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$/),
113
exitCode: 0,
114
});
115
0 commit comments