Skip to content

Commit a90f273

Browse files
committed
expand error 'message' assertion too.. I hate that it's called message, YUCK
1 parent 2e2a099 commit a90f273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/exec-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe("execFileWithInput integration tests", () => {
2323
fail("Should have thrown an error");
2424
} catch (error: any) {
2525
expect(error.stderr).toContain("bash: line 1: nonexistentcommand: command not found");
26-
expect(error.message).toBeTruthy();
26+
expect(error.message).toContain("Command failed: bash\nbash: line 1: nonexistentcommand: command not found\n");
2727
}
2828
});
2929

0 commit comments

Comments
 (0)