@@ -36,7 +36,7 @@ function getPackageVersion () {
36
36
*
37
37
* Mocks should be unregistered in test cleanup by calling unmock()
38
38
*
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 }) }
40
40
* changelog?: string | Error | Array<string | Error | (opt) => string | null>
41
41
* execFile?: ({ dryRun, silent }, cmd, cmdArgs) => Promise<string>
42
42
* fs?: { [string]: string | Buffer | any }
@@ -46,8 +46,8 @@ function getPackageVersion () {
46
46
function mock ( { bump, changelog, execFile, fs, pkg, tags } = { } ) {
47
47
mockery . enable ( { warnOnUnregistered : false , useCleanCache : true } )
48
48
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 )
51
51
else if ( bump instanceof Error ) cb ( bump )
52
52
else cb ( null , bump ? { releaseType : bump } : { } )
53
53
} )
@@ -405,7 +405,7 @@ describe('cli', function () {
405
405
406
406
it ( 'creates a prerelease with a new minor version after two prerelease patches' , async function ( ) {
407
407
let releaseType = 'patch'
408
- const bump = ( _ , cb ) => cb ( null , { releaseType } )
408
+ const bump = ( _ , __ , cb ) => cb ( null , { releaseType } )
409
409
mock ( {
410
410
bump,
411
411
fs : { 'CHANGELOG.md' : 'legacy header format<a name="1.0.0">\n' }
0 commit comments