Skip to content

Commit fe901ea

Browse files
Added some debugging code to figure out why a test is failing in CI
1 parent 038d2cf commit fe901ea

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

test/specs/cli.spec.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@ describe("bump", () => {
1515
this.timeout(Math.max(5000, this.timeout()));
1616
let bump = chaiExec("", { timeout: 2500 });
1717

18-
// It should have prompted for input
19-
expect(bump.stdout).to.contain("The current version in package.json is 1.0.0\nHow would you like to bump it? (Use arrow keys)");
18+
try {
19+
// It should have prompted for input
20+
expect(bump.stdout).to.contain("The current version in package.json is 1.0.0\nHow would you like to bump it? (Use arrow keys)");
21+
}
22+
catch (error) {
23+
console.log("====================== begin bump output ======================");
24+
console.log(bump);
25+
console.log("====================== end bump output ======================");
26+
throw error;
27+
}
2028
});
2129

2230
it("should error if an invalid argument is used", () => {

0 commit comments

Comments
 (0)