fix: log all core verification errors

This commit is contained in:
Pierre Vanduynslager
2018-01-29 00:55:32 -05:00
parent 2f75dff3fc
commit faabffb208
6 changed files with 50 additions and 28 deletions
+3 -3
View File
@@ -601,11 +601,11 @@ test.serial('Throw SemanticReleaseError if repositoryUrl is not set and cannot b
'./lib/logger': t.context.logger,
'env-ci': () => ({isCi: true, branch: 'master', isPr: false}),
});
const error = await t.throws(semanticRelease());
const errors = Array.from(await t.throws(semanticRelease()));
// Verify error code and type
t.is(error.code, 'ENOREPOURL');
t.is(error.name, 'SemanticReleaseError');
t.is(errors[0].code, 'ENOREPOURL');
t.is(errors[0].name, 'SemanticReleaseError');
});
test.serial('Throw an Error if plugin returns an unexpected value', async t => {