Skip to content

Commit 2d0821f

Browse files
committed
notes
1 parent 602780a commit 2d0821f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/exec-utils.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ describe("execFileWithInput integration tests", () => {
2323
await execFileWithInput("bash", "nonexistentcommand", {});
2424
fail("Should have thrown an error");
2525
} catch (result: any) {
26+
// FYI catch is so you can run assertions on the failed result, given the promise is rejected, it's then thrown here
2627
// console.log(result);
2728
expect(result.stderr).toContain("bash: line 1: nonexistentcommand: command not found");
2829
expect(result.message).toContain("Command failed: bash\nbash: line 1: nonexistentcommand: command not found\n");

0 commit comments

Comments
 (0)