@@ -35,7 +35,7 @@ export type FantomTestConfigJsOnlyFeatureFlags = Partial<{
35
35
[ key in keyof JsOnlyFeatureFlags ] : JsOnlyFeatureFlags [ key ] [ 'defaultValue' ] ,
36
36
} > ;
37
37
38
- export type FantomTestConfigInternalFeatureFlags = {
38
+ export type FantomTestConfigReactInternalFeatureFlags = {
39
39
[ key : string ] : FeatureFlagValue ,
40
40
} ;
41
41
@@ -44,7 +44,7 @@ export type FantomTestConfig = {
44
44
flags : {
45
45
common : FantomTestConfigCommonFeatureFlags ,
46
46
jsOnly : FantomTestConfigJsOnlyFeatureFlags ,
47
- internal : FantomTestConfigInternalFeatureFlags ,
47
+ reactInternal : FantomTestConfigReactInternalFeatureFlags ,
48
48
} ,
49
49
} ;
50
50
@@ -66,7 +66,7 @@ const FANTOM_BENCHMARK_SUITE_RE = /\nFantom\.unstable_benchmark(\s*)\.suite\(/g;
66
66
* * @fantom_mode opt
67
67
* * @fantom_flags commonTestFlag:true
68
68
* * @fantom_flags jsOnlyTestFlag:true
69
- * * @fantom_internal_flags internalTestFlag :true
69
+ * * @fantom_react_fb_flags reactInternalFlag :true
70
70
* *
71
71
* ```
72
72
*
@@ -93,7 +93,7 @@ export default function getFantomTestConfig(
93
93
enableAccessToHostTreeInFabric : true ,
94
94
enableDOMDocumentAPI : true ,
95
95
} ,
96
- internal : { } ,
96
+ reactInternal : { } ,
97
97
} ,
98
98
} ;
99
99
@@ -167,26 +167,26 @@ export default function getFantomTestConfig(
167
167
}
168
168
}
169
169
170
- const maybeInternalRawFlagConfig = pragmas . fantom_internal_flags ;
170
+ const maybeReactInternalRawFlagConfig = pragmas . fantom_react_fb_flags ;
171
171
172
- if ( maybeInternalRawFlagConfig != null ) {
173
- const internalRawFlagConfigs = (
174
- Array . isArray ( maybeInternalRawFlagConfig )
175
- ? maybeInternalRawFlagConfig
176
- : [ maybeInternalRawFlagConfig ]
172
+ if ( maybeReactInternalRawFlagConfig != null ) {
173
+ const reactInternalRawFlagConfigs = (
174
+ Array . isArray ( maybeReactInternalRawFlagConfig )
175
+ ? maybeReactInternalRawFlagConfig
176
+ : [ maybeReactInternalRawFlagConfig ]
177
177
) . flatMap ( value => value . split ( / \s + / g) ) ;
178
178
179
- for ( const internalRawFlagConfig of internalRawFlagConfigs ) {
180
- const matches = FANTOM_FLAG_FORMAT . exec ( internalRawFlagConfig ) ;
179
+ for ( const reactInternalRawFlagConfig of reactInternalRawFlagConfigs ) {
180
+ const matches = FANTOM_FLAG_FORMAT . exec ( reactInternalRawFlagConfig ) ;
181
181
if ( matches == null ) {
182
182
throw new Error (
183
- `Invalid format for Fantom internal feature flag: ${ internalRawFlagConfig } . Expected <flag_name>:<value>` ,
183
+ `Invalid format for Fantom React fb feature flag: ${ reactInternalRawFlagConfig } . Expected <flag_name>:<value>` ,
184
184
) ;
185
185
}
186
186
187
187
const [ , name , rawValue ] = matches ;
188
188
const value = parseFeatureFlagValue ( false , rawValue ) ;
189
- config . flags . internal [ name ] = value ;
189
+ config . flags . reactInternal [ name ] = value ;
190
190
}
191
191
}
192
192
0 commit comments