Skip to content

chore(tests): prefer --install-directory over PATH manipulation #1499

chore(tests): prefer --install-directory over PATH manipulation

chore(tests): prefer --install-directory over PATH manipulation #1499

Re-run triggered March 4, 2026 12:44
Status Failure
Total duration 17m 56s
Artifacts –

ci.yml

on: pull_request
Matrix: build-and-test
Fit to window
Zoom out
Zoom in

Annotations

8 errors
windows-latest w/ Node.js 22.x
Process completed with exit code 1.
tests/Disable.test.ts > DisableCommand > shouldn't remove Yarn binaries if they are in a /switch/ folder: tests/Disable.test.ts#L110
AssertionError: expected { Object (exitCode, stdout, ...) } to match object { stdout: '', …(2) } - Expected + Received { "exitCode": 0, - "stderr": StringMatching /^yarn is already installed in .+ and points to a Yarn Switch install - skipping\n$/, + "stderr": "", "stdout": "", } ❯ tests/Disable.test.ts:110:7 ❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.4-5a9daa47cb-d38e108a63.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24 ❯ tests/Disable.test.ts:101:5
tests/Disable.test.ts > DisableCommand > shouldn't remove Yarn binaries if they are in a /switch/ folder: tests/Disable.test.ts#L110
AssertionError: expected { Object (exitCode, stdout, ...) } to match object { stdout: '', …(2) } - Expected + Received { "exitCode": 0, - "stderr": StringMatching /^yarn is already installed in .+ and points to a Yarn Switch install - skipping\n$/, + "stderr": "", "stdout": "", } ❯ tests/Disable.test.ts:110:7 ❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.4-5a9daa47cb-d38e108a63.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24 ❯ tests/Disable.test.ts:101:5
tests/Disable.test.ts > DisableCommand > shouldn't remove Yarn binaries if they are in a /switch/ folder: tests/Disable.test.ts#L110
AssertionError: expected { Object (exitCode, stdout, ...) } to match object { stdout: '', …(2) } - Expected + Received { "exitCode": 0, - "stderr": StringMatching /^yarn is already installed in .+ and points to a Yarn Switch install - skipping\n$/, + "stderr": "", "stdout": "", } ❯ tests/Disable.test.ts:110:7 ❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.4-5a9daa47cb-d38e108a63.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24 ❯ tests/Disable.test.ts:101:5
windows-latest w/ Node.js 20.x
Process completed with exit code 1.
tests/Disable.test.ts > DisableCommand > shouldn't remove Yarn binaries if they are in a /switch/ folder: tests/Disable.test.ts#L110
AssertionError: expected { Object (exitCode, stdout, ...) } to match object { stdout: '', …(2) } - Expected + Received { "exitCode": 0, - "stderr": StringMatching /^yarn is already installed in .+ and points to a Yarn Switch install - skipping\n$/, + "stderr": "", "stdout": "", } ❯ tests/Disable.test.ts:110:7 ❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.4-5a9daa47cb-d38e108a63.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24 ❯ tests/Disable.test.ts:101:5
tests/Disable.test.ts > DisableCommand > shouldn't remove Yarn binaries if they are in a /switch/ folder: tests/Disable.test.ts#L110
AssertionError: expected { Object (exitCode, stdout, ...) } to match object { stdout: '', …(2) } - Expected + Received { "exitCode": 0, - "stderr": StringMatching /^yarn is already installed in .+ and points to a Yarn Switch install - skipping\n$/, + "stderr": "", "stdout": "", } ❯ tests/Disable.test.ts:110:7 ❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.4-5a9daa47cb-d38e108a63.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24 ❯ tests/Disable.test.ts:101:5
tests/Disable.test.ts > DisableCommand > shouldn't remove Yarn binaries if they are in a /switch/ folder: tests/Disable.test.ts#L110
AssertionError: expected { Object (exitCode, stdout, ...) } to match object { stdout: '', …(2) } - Expected + Received { "exitCode": 0, - "stderr": StringMatching /^yarn is already installed in .+ and points to a Yarn Switch install - skipping\n$/, + "stderr": "", "stdout": "", } ❯ tests/Disable.test.ts:110:7 ❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.4-5a9daa47cb-d38e108a63.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24 ❯ tests/Disable.test.ts:101:5