@@ -73,6 +73,10 @@ describe('nx release version plans', () => {
73
73
pkg5 = uniq ( 'my-pkg-5' ) ;
74
74
runCLI ( `generate @nx/workspace:npm-package ${ pkg5 } ` ) ;
75
75
76
+ // Normalize git committer information so it is deterministic in snapshots
77
+ await runCommandAsync ( `git config user.email "[email protected] "` ) ;
78
+ await runCommandAsync ( `git config user.name "Test"` ) ;
79
+
76
80
await runCommandAsync ( `git add .` ) ;
77
81
await runCommandAsync ( `git commit -m "chore: initial commit"` ) ;
78
82
await runCommandAsync ( `git tag -a v0.0.0 -m "v0.0.0"` ) ;
@@ -174,7 +178,12 @@ Here is another line in the message.
174
178
+
175
179
+ ### 🚀 Features
176
180
+
177
- + - Update the fixed packages with a minor release.`
181
+ + - Update the fixed packages with a minor release.
182
+ +
183
+ +
184
+ + ### ❤️ Thank You
185
+ +
186
+ + - Test`
178
187
) ;
179
188
expect ( resultWithoutDate ) . toContain (
180
189
`NX Generating an entry in ${ pkg2 } /CHANGELOG.md for v0.1.0
@@ -185,7 +194,12 @@ Here is another line in the message.
185
194
+
186
195
+ ### 🚀 Features
187
196
+
188
- + - Update the fixed packages with a minor release.`
197
+ + - Update the fixed packages with a minor release.
198
+ +
199
+ +
200
+ + ### ❤️ Thank You
201
+ +
202
+ + - Test`
189
203
) ;
190
204
expect ( resultWithoutDate ) . toContain (
191
205
`NX Generating an entry in ${ pkg3 } /CHANGELOG.md for ${ pkg3 } @0.0.1
@@ -196,9 +210,14 @@ Here is another line in the message.
196
210
+
197
211
+ ### 🩹 Fixes
198
212
+
199
- + - ** ${ pkg3 } :** Update the independent packages with a patch, preminor, and prerelease.
213
+ + - Update the independent packages with a patch, preminor, and prerelease.
200
214
+
201
- + Here is another line in the message.`
215
+ + Here is another line in the message.
216
+ +
217
+ +
218
+ + ### ❤️ Thank You
219
+ +
220
+ + - Test`
202
221
) ;
203
222
204
223
expect ( resultWithoutDate ) . toContain (
@@ -210,9 +229,14 @@ Here is another line in the message.
210
229
+
211
230
+ ### 🚀 Features
212
231
+
213
- + - **${ pkg4 } :** Update the independent packages with a patch, preminor, and prerelease.
232
+ + - Update the independent packages with a patch, preminor, and prerelease.
233
+ +
234
+ + Here is another line in the message.
235
+ +
214
236
+
215
- + Here is another line in the message.`
237
+ + ### ❤️ Thank You
238
+ +
239
+ + - Test`
216
240
) ;
217
241
218
242
expect ( resultWithoutDate ) . toContain (
@@ -224,9 +248,14 @@ Here is another line in the message.
224
248
+
225
249
+ ### 🩹 Fixes
226
250
+
227
- + - **${ pkg5 } :** Update the independent packages with a patch, preminor, and prerelease.
251
+ + - Update the independent packages with a patch, preminor, and prerelease.
252
+ +
253
+ + Here is another line in the message.
254
+ +
255
+ +
256
+ + ### ❤️ Thank You
228
257
+
229
- + Here is another line in the message. `
258
+ + - Test `
230
259
) ;
231
260
232
261
await writeFile (
@@ -298,12 +327,17 @@ Update packages in both groups with a mix #2
298
327
+
299
328
+ ### 🚀 Features
300
329
+
301
- + - ** ${ pkg1 } :** Update packages in both groups with a mix #1
330
+ + - Update packages in both groups with a mix #1
302
331
+
303
332
+
304
333
+ ### 🩹 Fixes
305
334
+
306
- + - Update packages in both groups with a mix #2`
335
+ + - Update packages in both groups with a mix #2
336
+ +
337
+ +
338
+ + ### ❤️ Thank You
339
+ +
340
+ + - Test`
307
341
) ;
308
342
expect ( result2WithoutDate ) . toContain (
309
343
`NX Generating an entry in ${ pkg2 } /CHANGELOG.md for v0.2.0
@@ -316,6 +350,11 @@ Update packages in both groups with a mix #2
316
350
+ ### 🩹 Fixes
317
351
+
318
352
+ - Update packages in both groups with a mix #2
353
+ +
354
+ +
355
+ + ### ❤️ Thank You
356
+ +
357
+ + - Test
319
358
`
320
359
) ;
321
360
expect ( result2WithoutDate ) . toContain (
@@ -328,7 +367,12 @@ Update packages in both groups with a mix #2
328
367
+
329
368
+ ### 🩹 Fixes
330
369
+
331
- + - **${ pkg3 } :** Update packages in both groups with a mix #1`
370
+ + - Update packages in both groups with a mix #1
371
+ +
372
+ +
373
+ + ### ❤️ Thank You
374
+ +
375
+ + - Test`
332
376
) ;
333
377
334
378
expect ( result2WithoutDate ) . toContain (
@@ -341,7 +385,12 @@ Update packages in both groups with a mix #2
341
385
+
342
386
+ ### 🚀 Features
343
387
+
344
- + - **${ pkg4 } :** Update packages in both groups with a mix #2`
388
+ + - Update packages in both groups with a mix #2
389
+ +
390
+ +
391
+ + ### ❤️ Thank You
392
+ +
393
+ + - Test`
345
394
) ;
346
395
347
396
expect ( result2WithoutDate ) . toContain (
@@ -354,7 +403,12 @@ Update packages in both groups with a mix #2
354
403
+
355
404
+ ### 🩹 Fixes
356
405
+
357
- + - **${ pkg5 } :** Update packages in both groups with a mix #2`
406
+ + - Update packages in both groups with a mix #2
407
+ +
408
+ +
409
+ + ### ❤️ Thank You
410
+ +
411
+ + - Test`
358
412
) ;
359
413
360
414
expect ( exists ( join ( versionPlansDir , 'bump-mixed1.md' ) ) ) . toBeFalsy ( ) ;
@@ -512,7 +566,12 @@ const yargs = require('yargs');
512
566
+
513
567
+ ### 🚀 Features
514
568
+
515
- + - Update the fixed packages with a minor release.`
569
+ + - Update the fixed packages with a minor release.
570
+ +
571
+ +
572
+ + ### ❤️ Thank You
573
+ +
574
+ + - Test`
516
575
) ;
517
576
expect ( resultWithoutDate ) . toContain (
518
577
`NX Generating an entry in ${ pkg2 } /CHANGELOG.md for v0.1.0
@@ -523,7 +582,12 @@ const yargs = require('yargs');
523
582
+
524
583
+ ### 🚀 Features
525
584
+
526
- + - Update the fixed packages with a minor release.`
585
+ + - Update the fixed packages with a minor release.
586
+ +
587
+ +
588
+ + ### ❤️ Thank You
589
+ +
590
+ + - Test`
527
591
) ;
528
592
expect ( resultWithoutDate ) . toContain (
529
593
`NX Generating an entry in ${ pkg3 } /CHANGELOG.md for ${ pkg3 } @0.0.1
@@ -534,7 +598,12 @@ const yargs = require('yargs');
534
598
+
535
599
+ ### 🩹 Fixes
536
600
+
537
- + - **${ pkg3 } :** Update the independent packages with a patch, preminor, and prerelease.`
601
+ + - Update the independent packages with a patch, preminor, and prerelease.
602
+ +
603
+ +
604
+ + ### ❤️ Thank You
605
+ +
606
+ + - Test`
538
607
) ;
539
608
540
609
expect ( resultWithoutDate ) . toContain (
@@ -546,7 +615,12 @@ const yargs = require('yargs');
546
615
+
547
616
+ ### 🚀 Features
548
617
+
549
- + - **${ pkg4 } :** Update the independent packages with a patch, preminor, and prerelease.`
618
+ + - Update the independent packages with a patch, preminor, and prerelease.
619
+ +
620
+ +
621
+ + ### ❤️ Thank You
622
+ +
623
+ + - Test`
550
624
) ;
551
625
552
626
expect ( resultWithoutDate ) . toContain (
@@ -558,7 +632,12 @@ const yargs = require('yargs');
558
632
+
559
633
+ ### 🩹 Fixes
560
634
+
561
- + - **${ pkg5 } :** Update the independent packages with a patch, preminor, and prerelease.`
635
+ + - Update the independent packages with a patch, preminor, and prerelease.
636
+ +
637
+ +
638
+ + ### ❤️ Thank You
639
+ +
640
+ + - Test`
562
641
) ;
563
642
564
643
expect ( exists ( join ( versionPlansDir , 'bump-fixed.md' ) ) ) . toBeFalsy ( ) ;
@@ -633,12 +712,17 @@ Update packages in both groups with a mix #2
633
712
+
634
713
+ ### 🚀 Features
635
714
+
636
- + - ** ${ pkg1 } :** Update packages in both groups with a mix #1
715
+ + - Update packages in both groups with a mix #1
637
716
+
638
717
+
639
718
+ ### 🩹 Fixes
640
719
+
641
- + - Update packages in both groups with a mix #2`
720
+ + - Update packages in both groups with a mix #2
721
+ +
722
+ +
723
+ + ### ❤️ Thank You
724
+ +
725
+ + - Test`
642
726
) ;
643
727
expect ( result2WithoutDate ) . toContain (
644
728
`NX Generating an entry in ${ pkg2 } /CHANGELOG.md for v0.2.0
@@ -651,6 +735,11 @@ Update packages in both groups with a mix #2
651
735
+ ### 🩹 Fixes
652
736
+
653
737
+ - Update packages in both groups with a mix #2
738
+ +
739
+ +
740
+ + ### ❤️ Thank You
741
+ +
742
+ + - Test
654
743
`
655
744
) ;
656
745
expect ( result2WithoutDate ) . toContain (
@@ -663,7 +752,12 @@ Update packages in both groups with a mix #2
663
752
+
664
753
+ ### 🩹 Fixes
665
754
+
666
- + - **${ pkg3 } :** Update packages in both groups with a mix #1`
755
+ + - Update packages in both groups with a mix #1
756
+ +
757
+ +
758
+ + ### ❤️ Thank You
759
+ +
760
+ + - Test`
667
761
) ;
668
762
669
763
expect ( result2WithoutDate ) . toContain (
@@ -676,7 +770,12 @@ Update packages in both groups with a mix #2
676
770
+
677
771
+ ### 🚀 Features
678
772
+
679
- + - **${ pkg4 } :** Update packages in both groups with a mix #2`
773
+ + - Update packages in both groups with a mix #2
774
+ +
775
+ +
776
+ + ### ❤️ Thank You
777
+ +
778
+ + - Test`
680
779
) ;
681
780
682
781
expect ( result2WithoutDate ) . toContain (
@@ -689,7 +788,12 @@ Update packages in both groups with a mix #2
689
788
+
690
789
+ ### 🩹 Fixes
691
790
+
692
- + - **${ pkg5 } :** Update packages in both groups with a mix #2`
791
+ + - Update packages in both groups with a mix #2
792
+ +
793
+ +
794
+ + ### ❤️ Thank You
795
+ +
796
+ + - Test`
693
797
) ;
694
798
695
799
expect ( exists ( join ( versionPlansDir , 'bump-mixed1.md' ) ) ) . toBeFalsy ( ) ;
0 commit comments