@@ -36,7 +36,7 @@ function getPackageVersion () {
3636 *
3737 * Mocks should be unregistered in test cleanup by calling unmock()
3838 *
39- * bump?: 'major' | 'minor' | 'patch' | Error | (opt, cb) => { cb(err) | cb(null, { releaseType }) }
39+ * bump?: 'major' | 'minor' | 'patch' | Error | (opt, parserOpts, cb) => { cb(err) | cb(null, { releaseType }) }
4040 * changelog?: string | Error | Array<string | Error | (opt) => string | null>
4141 * execFile?: ({ dryRun, silent }, cmd, cmdArgs) => Promise<string>
4242 * fs?: { [string]: string | Buffer | any }
@@ -46,8 +46,8 @@ function getPackageVersion () {
4646function mock ( { bump, changelog, execFile, fs, pkg, tags } = { } ) {
4747 mockery . enable ( { warnOnUnregistered : false , useCleanCache : true } )
4848
49- mockery . registerMock ( 'conventional-recommended-bump' , function ( opt , cb ) {
50- if ( typeof bump === 'function' ) bump ( opt , cb )
49+ mockery . registerMock ( 'conventional-recommended-bump' , function ( opt , parserOpts , cb ) {
50+ if ( typeof bump === 'function' ) bump ( opt , parserOpts , cb )
5151 else if ( bump instanceof Error ) cb ( bump )
5252 else cb ( null , bump ? { releaseType : bump } : { } )
5353 } )
@@ -405,7 +405,7 @@ describe('cli', function () {
405405
406406 it ( 'creates a prerelease with a new minor version after two prerelease patches' , async function ( ) {
407407 let releaseType = 'patch'
408- const bump = ( _ , cb ) => cb ( null , { releaseType } )
408+ const bump = ( _ , __ , cb ) => cb ( null , { releaseType } )
409409 mock ( {
410410 bump,
411411 fs : { 'CHANGELOG.md' : 'legacy header format<a name="1.0.0">\n' }
0 commit comments