File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { getRunnerLogger } from "./logging";
15
15
import { parseRepositoryNwo } from "./repository" ;
16
16
import {
17
17
getRecordingLogger ,
18
+ initializeFeatures ,
18
19
LoggedMessage ,
19
20
mockCodeQLVersion ,
20
21
mockFeatureFlagApiEndpoint ,
@@ -552,13 +553,6 @@ function assertAllFeaturesUndefinedInApi(
552
553
}
553
554
}
554
555
555
- export function initializeFeatures ( initialValue : boolean ) {
556
- return Object . keys ( featureConfig ) . reduce ( ( features , key ) => {
557
- features [ key ] = initialValue ;
558
- return features ;
559
- } , { } ) ;
560
- }
561
-
562
556
function setUpFeatureFlagTests (
563
557
tmpDir : string ,
564
558
logger = getRunnerLogger ( true ) ,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import * as sinon from "sinon";
5
5
6
6
import * as actionsUtil from "./actions-util" ;
7
7
import { Feature , FeatureEnablement } from "./feature-flags" ;
8
- import { initializeFeatures } from "./feature-flags.test" ;
9
8
import { getRunnerLogger } from "./logging" ;
10
9
import * as setupCodeql from "./setup-codeql" ;
11
10
import {
@@ -14,6 +13,7 @@ import {
14
13
SAMPLE_DEFAULT_CLI_VERSION ,
15
14
SAMPLE_DOTCOM_API_DETAILS ,
16
15
getRecordingLogger ,
16
+ initializeFeatures ,
17
17
mockBundleDownloadApi ,
18
18
setupActionsVars ,
19
19
setupTests ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import * as defaults from "./defaults.json";
14
14
import {
15
15
CodeQLDefaultVersionInfo ,
16
16
Feature ,
17
+ featureConfig ,
17
18
FeatureEnablement ,
18
19
} from "./feature-flags" ;
19
20
import { Logger } from "./logging" ;
@@ -263,6 +264,13 @@ export function createFeatures(enabledFeatures: Feature[]): FeatureEnablement {
263
264
} ;
264
265
}
265
266
267
+ export function initializeFeatures ( initialValue : boolean ) {
268
+ return Object . keys ( featureConfig ) . reduce ( ( features , key ) => {
269
+ features [ key ] = initialValue ;
270
+ return features ;
271
+ } , { } ) ;
272
+ }
273
+
266
274
/**
267
275
* Mocks the API for downloading the bundle tagged `tagName`.
268
276
*
You can’t perform that action at this time.
0 commit comments