@@ -2494,13 +2494,67 @@ describe('Manifest', () => {
24942494 } )
24952495 )
24962496 )
2497+ . withArgs (
2498+ '.release-please-manifest.json' ,
2499+ 'release-please--branches--main--changes--next--components--pkg1'
2500+ )
2501+ . resolves (
2502+ buildGitHubFileRaw (
2503+ JSON . stringify ( {
2504+ 'path/a' : '1.0.1' ,
2505+ } )
2506+ )
2507+ )
2508+ . withArgs (
2509+ '.release-please-manifest.json' ,
2510+ 'release-please--branches--main--changes--next--components--pkg2'
2511+ )
2512+ . resolves (
2513+ buildGitHubFileRaw (
2514+ JSON . stringify ( {
2515+ 'path/b' : '2.0.1' ,
2516+ } )
2517+ )
2518+ )
24972519 . withArgs ( 'path/b/package.json' , 'next' )
24982520 . resolves (
24992521 buildGitHubFileRaw (
25002522 JSON . stringify ( {
25012523 name : 'pkg2' ,
25022524 } )
25032525 )
2526+ )
2527+ . withArgs (
2528+ '.release-please-manifest.json' ,
2529+ 'release-please--branches--main--changes--next--components--pkg3'
2530+ )
2531+ . resolves (
2532+ buildGitHubFileRaw (
2533+ JSON . stringify ( {
2534+ 'path/c' : '3.0.1' ,
2535+ } )
2536+ )
2537+ )
2538+ . withArgs ( 'path/c/setup.py' , 'next' )
2539+ . resolves (
2540+ buildGitHubFileRaw (
2541+ `
2542+ name = "pkg3"
2543+ description = "Something"
2544+ version = "3.0.0"
2545+ `
2546+ )
2547+ )
2548+ . withArgs (
2549+ '.release-please-manifest.json' ,
2550+ 'release-please--branches--main--changes--next--components--pkg4'
2551+ )
2552+ . resolves (
2553+ buildGitHubFileRaw (
2554+ JSON . stringify ( {
2555+ 'path/d' : '4.0.1' ,
2556+ } )
2557+ )
25042558 ) ;
25052559
25062560 const findFilesByFilenameAndRefStub = sandbox
@@ -2535,7 +2589,7 @@ describe('Manifest', () => {
25352589 const pullRequests = await manifest . buildPullRequests (
25362590 [
25372591 {
2538- title : 'chore(main): release v6.7.9-alpha.1' , // version from title differs from expected 4.0.1
2592+ title : 'chore(main): release v6.7.9-alpha.1' , // version from title differs from PR manifest
25392593 body : 'some content' ,
25402594 headBranchName :
25412595 'release-please--branches--main--changes--next--components--pkg1' ,
@@ -2545,7 +2599,7 @@ describe('Manifest', () => {
25452599 files : [ ] ,
25462600 } ,
25472601 {
2548- title : 'chore(main): release v7.8.9' , // version from title differs from expected 4.0.1
2602+ title : 'chore(main): release v7.8.9' , // version from title differs from PR manifest
25492603 body : 'some content' ,
25502604 headBranchName :
25512605 'release-please--branches--main--changes--next--components--pkg2' ,
@@ -2555,7 +2609,7 @@ describe('Manifest', () => {
25552609 files : [ ] ,
25562610 } ,
25572611 {
2558- title : 'chore(main): release 8.9.0' , // version from title differs from expected 4.0.1
2612+ title : 'chore(main): release 8.9.0' , // version from title differs from PR manifest
25592613 body : 'some content' ,
25602614 headBranchName :
25612615 'release-please--branches--main--changes--next--components--pkg3' ,
@@ -2565,7 +2619,7 @@ describe('Manifest', () => {
25652619 files : [ ] ,
25662620 } ,
25672621 {
2568- title : 'chore(main): release v9.0.1' , // version from title differs from expected 4.0.1
2622+ title : 'chore(main): release v9.0.1' , // version from title differs from PR manifest
25692623 body : 'some content' ,
25702624 headBranchName :
25712625 'release-please--branches--main--changes--next--components--pkg4' ,
@@ -2582,9 +2636,9 @@ describe('Manifest', () => {
25822636 expect ( pullRequests [ 1 ] . version ?. toString ( ) ) . to . eql ( '7.8.9' ) ;
25832637 expect ( pullRequests [ 2 ] . version ?. toString ( ) ) . to . eql ( '8.9.0' ) ;
25842638 expect ( pullRequests [ 3 ] . version ?. toString ( ) ) . to . eql ( '9.0.1' ) ;
2639+ sinon . assert . called ( getFileContentsOnBranchStub ) ;
25852640 sinon . assert . called ( addIssueLabelsStub ) ;
25862641 sinon . assert . called ( findFilesByFilenameAndRefStub ) ;
2587- sinon . assert . called ( getFileContentsOnBranchStub ) ;
25882642 expect ( commentCount ) . to . eql ( 4 ) ;
25892643 } ) ;
25902644
0 commit comments