@@ -12,7 +12,6 @@ const {
12
12
gitPush,
13
13
gitTag,
14
14
gitGetTags,
15
- gitReleaseBranches,
16
15
} = require ( "../helpers/git" ) ;
17
16
18
17
// Clear mocks before tests.
@@ -26,7 +25,6 @@ describe("multiSemanticRelease()", () => {
26
25
test ( "Initial commit (changes in all packages)" , async ( ) => {
27
26
// Create Git repo with copy of Yarn workspaces fixture.
28
27
const cwd = gitInit ( ) ;
29
- const branches = gitReleaseBranches ( ) ;
30
28
copyDirectory ( `test/fixtures/yarnWorkspaces/` , cwd ) ;
31
29
const sha = gitCommitAll ( cwd , "feat: Initial release" ) ;
32
30
const url = gitInitOrigin ( cwd ) ;
@@ -46,7 +44,7 @@ describe("multiSemanticRelease()", () => {
46
44
`packages/c/package.json` ,
47
45
`packages/d/package.json` ,
48
46
] ,
49
- { branches } ,
47
+ { } ,
50
48
{ cwd, stdout, stderr }
51
49
) ;
52
50
@@ -147,7 +145,6 @@ describe("multiSemanticRelease()", () => {
147
145
test ( "No changes in any packages" , async ( ) => {
148
146
// Create Git repo with copy of Yarn workspaces fixture.
149
147
const cwd = gitInit ( ) ;
150
- const branches = gitReleaseBranches ( ) ;
151
148
copyDirectory ( `test/fixtures/yarnWorkspaces/` , cwd ) ;
152
149
const sha = gitCommitAll ( cwd , "feat: Initial release" ) ;
153
150
// Creating the four tags so there are no changes in any packages.
@@ -172,7 +169,7 @@ describe("multiSemanticRelease()", () => {
172
169
`packages/d/package.json` ,
173
170
`packages/b/package.json` ,
174
171
] ,
175
- { branches } ,
172
+ { } ,
176
173
{ cwd, stdout, stderr }
177
174
) ;
178
175
@@ -200,7 +197,6 @@ describe("multiSemanticRelease()", () => {
200
197
test ( "Changes in some packages" , async ( ) => {
201
198
// Create Git repo.
202
199
const cwd = gitInit ( ) ;
203
- const branches = gitReleaseBranches ( ) ;
204
200
// Initial commit.
205
201
copyDirectory ( `test/fixtures/yarnWorkspaces/` , cwd ) ;
206
202
const sha1 = gitCommitAll ( cwd , "feat: Initial release" ) ;
@@ -228,7 +224,7 @@ describe("multiSemanticRelease()", () => {
228
224
`packages/b/package.json` ,
229
225
`packages/a/package.json` ,
230
226
] ,
231
- { branches } ,
227
+ { } ,
232
228
{ cwd, stdout, stderr }
233
229
) ;
234
230
@@ -336,7 +332,6 @@ describe("multiSemanticRelease()", () => {
336
332
test ( "Error if release's local deps have no version number" , async ( ) => {
337
333
// Create Git repo with copy of Yarn workspaces fixture.
338
334
const cwd = gitInit ( ) ;
339
- const branches = gitReleaseBranches ( ) ;
340
335
copyDirectory ( `test/fixtures/yarnWorkspaces/` , cwd ) ;
341
336
gitAdd ( cwd , "packages/a/package.json" ) ;
342
337
const sha = gitCommit ( cwd , "feat: Commit first package only" ) ;
@@ -352,7 +347,7 @@ describe("multiSemanticRelease()", () => {
352
347
const multiSemanticRelease = require ( "../../" ) ;
353
348
const result = await multiSemanticRelease (
354
349
[ `packages/a/package.json` , `packages/c/package.json` ] ,
355
- { branches } ,
350
+ { } ,
356
351
{ cwd, stdout, stderr }
357
352
) ;
358
353
@@ -365,7 +360,6 @@ describe("multiSemanticRelease()", () => {
365
360
test ( "Configured plugins are called as normal" , async ( ) => {
366
361
// Create Git repo with copy of Yarn workspaces fixture.
367
362
const cwd = gitInit ( ) ;
368
- const branches = gitReleaseBranches ( ) ;
369
363
copyDirectory ( `test/fixtures/yarnWorkspaces/` , cwd ) ;
370
364
const sha = gitCommitAll ( cwd , "feat: Initial release" ) ;
371
365
const url = gitInitOrigin ( cwd ) ;
@@ -394,7 +388,6 @@ describe("multiSemanticRelease()", () => {
394
388
// Override to add our own plugins.
395
389
plugins : [ "@semantic-release/release-notes-generator" , plugin ] ,
396
390
analyzeCommits : [ "@semantic-release/commit-analyzer" ] ,
397
- branches,
398
391
} ,
399
392
{ cwd, stdout, stderr }
400
393
) ;
@@ -411,7 +404,6 @@ describe("multiSemanticRelease()", () => {
411
404
test ( "Deep errors (e.g. in plugins) bubble up and out" , async ( ) => {
412
405
// Create Git repo with copy of Yarn workspaces fixture.
413
406
const cwd = gitInit ( ) ;
414
- const branches = gitReleaseBranches ( ) ;
415
407
copyDirectory ( `test/fixtures/yarnWorkspaces/` , cwd ) ;
416
408
const sha = gitCommitAll ( cwd , "feat: Initial release" ) ;
417
409
const url = gitInitOrigin ( cwd ) ;
@@ -438,7 +430,6 @@ describe("multiSemanticRelease()", () => {
438
430
} ,
439
431
} ,
440
432
] ,
441
- branches,
442
433
} ,
443
434
{ cwd, stdout, stderr }
444
435
) ;
0 commit comments