Skip to content

Commit 725baf3

Browse files
authored
chore: goff test env correction (#672)
Signed-off-by: Todd Baert <[email protected]>
1 parent 0d81ce2 commit 725baf3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libs/providers/go-feature-flag/jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export default {
1212
},
1313
moduleFileExtensions: ['ts', 'js', 'html'],
1414
coverageDirectory: '../../../coverage/libs/providers/go-feature-flag',
15+
testEnvironment: 'node',
1516
};

libs/providers/go-feature-flag/src/lib/data-collector-hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class GoFeatureFlagDataCollectorHook implements Hook {
1616
// bgSchedulerId contains the id of the setInterval that is running.
1717
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1818
// @ts-ignore
19-
private bgScheduler?: NodeJS.Timer;
19+
private bgScheduler?: ReturnType<setInterval>;
2020

2121
// dataCollectorBuffer contains all the FeatureEvents that we need to send to the relay-proxy for data collection.
2222
private dataCollectorBuffer?: FeatureEvent<any>[];

0 commit comments

Comments
 (0)