Compare commits

..
3 changed files with 641 additions and 263 deletions
+632 -245
View File
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -26,9 +26,9 @@
"Matt Travi <npm@travi.org> (https://matt.travi.org/)"
],
"dependencies": {
"@semantic-release/commit-analyzer": "^10.0.0",
"@semantic-release/error": "^4.0.0",
"@semantic-release/github": "^9.0.0",
"@semantic-release/commit-analyzer": "^10.0.0-beta.1",
"@semantic-release/error": "^3.0.0",
"@semantic-release/github": "9.0.0-beta.2",
"@semantic-release/npm": "^10.0.2",
"@semantic-release/release-notes-generator": "^11.0.0",
"aggregate-error": "^4.0.1",
@@ -56,14 +56,14 @@
"yargs": "^17.5.1"
},
"devDependencies": {
"ava": "5.3.0",
"ava": "5.2.0",
"c8": "7.14.0",
"clear-module": "4.1.2",
"codecov": "3.8.3",
"dockerode": "3.3.5",
"file-url": "4.0.0",
"fs-extra": "11.1.1",
"got": "13.0.0",
"got": "12.6.0",
"js-yaml": "4.1.0",
"mockserver-client": "5.15.0",
"nock": "13.3.1",
+4 -13
View File
@@ -1853,19 +1853,10 @@ 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;
let error;
try {
await semanticRelease(options, {
cwd,
env: {},
stdout: new WritableStreamBuffer(),
stderr: new WritableStreamBuffer(),
});
} catch (e) {
error = e;
}
t.is(error.code, "EANALYZECOMMITSOUTPUT");
const error = await t.throwsAsync(
semanticRelease(options, { cwd, env: {}, stdout: new WritableStreamBuffer(), stderr: new WritableStreamBuffer() }),
{ instanceOf: SemanticReleaseError }
);
t.regex(error.details, /string/);
});