Skip to content

Commit

Permalink
Merge pull request #2826 from semantic-release/renovate/major-semanti…
Browse files Browse the repository at this point in the history
…c-release-monorepo
  • Loading branch information
travi committed Jun 9, 2023
2 parents 286bd67 + 4bf763f commit 18730e8
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 13 deletions.
63 changes: 55 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,7 +27,7 @@
],
"dependencies": {
"@semantic-release/commit-analyzer": "^10.0.0",
"@semantic-release/error": "^3.0.0",
"@semantic-release/error": "^4.0.0",
"@semantic-release/github": "^9.0.0",
"@semantic-release/npm": "^10.0.2",
"@semantic-release/release-notes-generator": "^11.0.0",
Expand Down
17 changes: 13 additions & 4 deletions test/index.test.js
Expand Up @@ -1853,10 +1853,19 @@ test.serial("Throw an Error if plugin returns an unexpected value", async (t) =>
await td.replaceEsm("../lib/get-logger.js", null, () => t.context.logger);
await td.replaceEsm("env-ci", null, () => ({ isCi: true, branch: "master", isPr: false }));
const semanticRelease = (await import("../index.js")).default;
const error = await t.throwsAsync(
semanticRelease(options, { cwd, env: {}, stdout: new WritableStreamBuffer(), stderr: new WritableStreamBuffer() }),
{ instanceOf: SemanticReleaseError }
);

let error;
try {
await semanticRelease(options, {
cwd,
env: {},
stdout: new WritableStreamBuffer(),
stderr: new WritableStreamBuffer(),
});
} catch (e) {
error = e;
}
t.is(error.code, "EANALYZECOMMITSOUTPUT");
t.regex(error.details, /string/);
});

Expand Down

0 comments on commit 18730e8

Please sign in to comment.