Merge pull request #2610 from semantic-release/index-test

This commit is contained in:
Matt Travi 2022-11-15 21:59:01 -06:00 committed by GitHub
commit 0ab8d9a4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1,3 @@
module.exports = () => {};
module.exports = function noop() {
};

View File

@ -139,7 +139,7 @@ test('Plugins are called with expected values', async (t) => {
pluginName: '[Function: functionStub]',
},
{...nextRelease, ...release2, notes: `${notes1}\n\n${notes2}\n\n${notes3}`, pluginName: '[Function: functionStub]'},
{...nextRelease, notes: `${notes1}\n\n${notes2}\n\n${notes3}`, pluginName: pluginNoop},
{...nextRelease, notes: `${notes1}\n\n${notes2}\n\n${notes3}`, pluginName: '[Function: noop]'},
];
await td.replaceEsm('../lib/get-logger.js', null, () => t.context.logger);