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.
1 parent 602780a commit 2d0821fCopy full SHA for 2d0821f
tests/integration/exec-utils.test.ts
@@ -23,6 +23,7 @@ describe("execFileWithInput integration tests", () => {
23
await execFileWithInput("bash", "nonexistentcommand", {});
24
fail("Should have thrown an error");
25
} 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
27
// console.log(result);
28
expect(result.stderr).toContain("bash: line 1: nonexistentcommand: command not found");
29
expect(result.message).toContain("Command failed: bash\nbash: line 1: nonexistentcommand: command not found\n");
0 commit comments