We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59dae4f commit 5fe5e0aCopy full SHA for 5fe5e0a
1 file changed
test/specs/cli.spec.js
@@ -47,6 +47,21 @@ describe("bump", () => {
47
expect(cli.stderr).to.contain(manifest.description);
48
});
49
50
+ it("should print a more detailed error if DEBUG is set", () => {
51
+ files.create("package.json", { version: "" });
52
+
53
+ let cli = bump("major", { env: { DEBUG: "true" }});
54
55
+ expect(cli).to.have.stdout("");
56
+ expect(cli).to.have.exitCode(1);
57
58
+ expect(cli).to.have.stderr.that.matches(
59
+ /^Error: Unable to determine the current version number. Checked package.json.\n\s+at \w+/
60
+ );
61
62
+ expect(files.json("package.json")).to.deep.equal({ version: "" });
63
+ });
64
65
describe("bump --help", () => {
66
it("should show usage text", () => {
67
let cli = bump("--help");
0 commit comments