@@ -342,6 +342,7 @@ describe(".gittensory.yml.example field-exhaustiveness (#1670)", () => {
342342 reviewEvasionProtection : "reviewEvasionProtection:" ,
343343 reviewEvasionLabel : "reviewEvasionLabel:" ,
344344 reviewEvasionComment : "reviewEvasionComment:" ,
345+ mergeTrainMode : "mergeTrainMode:" ,
345346 typeLabels : "typeLabels:" ,
346347 linkedIssueLabelPropagation : "linkedIssueLabelPropagation:" ,
347348 linkedIssueHardRules : "linkedIssueHardRules:" ,
@@ -1786,13 +1787,14 @@ describe("parseFocusManifest settings override + resolveEffectiveSettings", () =
17861787
17871788 it ( "drops invalid settings values with warnings and keeps the valid ones" , ( ) => {
17881789 const m = parseFocusManifest ( {
1789- settings : { commentMode : "loud" , qualityGateMinScore : "high" , autoLabelEnabled : "yes" , gittensorLabel : " " , publicSurface : "comment_only" } ,
1790+ settings : { commentMode : "loud" , qualityGateMinScore : "high" , autoLabelEnabled : "yes" , gittensorLabel : " " , mergeTrainMode : "later" , publicSurface : "comment_only" } ,
17901791 } ) ;
17911792 expect ( m . settings ) . toEqual ( { publicSurface : "comment_only" } ) ;
17921793 expect ( m . warnings . some ( ( w ) => / s e t t i n g s \. c o m m e n t M o d e / . test ( w ) ) ) . toBe ( true ) ;
17931794 expect ( m . warnings . some ( ( w ) => / s e t t i n g s \. q u a l i t y G a t e M i n S c o r e / . test ( w ) ) ) . toBe ( true ) ;
17941795 expect ( m . warnings . some ( ( w ) => / s e t t i n g s \. a u t o L a b e l E n a b l e d / . test ( w ) ) ) . toBe ( true ) ;
17951796 expect ( m . warnings . some ( ( w ) => / s e t t i n g s \. g i t t e n s o r L a b e l / . test ( w ) ) ) . toBe ( true ) ;
1797+ expect ( m . warnings . some ( ( w ) => / s e t t i n g s \. m e r g e T r a i n M o d e / . test ( w ) ) ) . toBe ( true ) ;
17961798 } ) ;
17971799
17981800 it ( "ignores a non-mapping settings block and treats a settings-only manifest as present" , ( ) => {
@@ -1815,7 +1817,7 @@ describe("parseFocusManifest settings override + resolveEffectiveSettings", () =
18151817 } ) ;
18161818
18171819 it ( "round-trips settings through settingsOverrideToJson and serializes empty as null" , ( ) => {
1818- const original = parseFocusManifest ( { settings : { commentMode : "all_prs" , qualityGateMinScore : 40 } } ) ;
1820+ const original = parseFocusManifest ( { settings : { commentMode : "all_prs" , qualityGateMinScore : 40 , mergeTrainMode : "audit" } } ) ;
18191821 const reparsed = parseFocusManifest ( { settings : settingsOverrideToJson ( original . settings ) } ) ;
18201822 expect ( reparsed . settings ) . toEqual ( original . settings ) ;
18211823 expect ( settingsOverrideToJson ( parseFocusManifest ( { } ) . settings ) ) . toBeNull ( ) ;
0 commit comments