Skip to content

Commit 32c84c3

Browse files
arcanismerceyz
authored andcommitted
test(shell): fix failing tests (#4969)
Update shell.test.ts (cherry picked from commit 1379b71)
1 parent 98c6552 commit 32c84c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/yarnpkg-shell/tests/shell.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,27 +1259,27 @@ describe(`Shell`, () => {
12591259
describe(`Lists`, () => {
12601260
it(`should execute lists with left associativity`, async () => {
12611261
await expectResult(bufferResult(
1262-
`inexistent && echo yes || echo no`,
1262+
`false && echo yes || echo no`,
12631263
), {
12641264
exitCode: 0,
12651265
stdout: `no\n`,
1266-
stderr: `command not found: inexistent\n`,
1266+
stderr: ``,
12671267
});
12681268

12691269
await expectResult(bufferResult(
1270-
`inexistent || echo no && echo yes`,
1270+
`false || echo no && echo yes`,
12711271
), {
12721272
exitCode: 0,
12731273
stdout: `no\nyes\n`,
1274-
stderr: `command not found: inexistent\n`,
1274+
stderr: ``,
12751275
});
12761276

12771277
await expectResult(bufferResult(
1278-
`inexistent && echo yes || inexistent && echo yes || echo no`,
1278+
`false && echo yes || false && echo yes || echo no`,
12791279
), {
12801280
exitCode: 0,
12811281
stdout: `no\n`,
1282-
stderr: `command not found: inexistent\ncommand not found: inexistent\n`,
1282+
stderr: ``,
12831283
});
12841284
});
12851285
});

0 commit comments

Comments
 (0)