11import { StepDefinitions } from 'jest-cucumber' ;
22import {
3- EvaluationContext ,
43 EvaluationDetails ,
54 FlagValue ,
65 JsonObject ,
@@ -13,10 +12,8 @@ import { E2E_CLIENT_NAME } from '@openfeature/flagd-core';
1312export const flagStepDefinitions : StepDefinitions = ( { given, and, when, then } ) => {
1413 let flagKey : string ;
1514 let value : FlagValue ;
16- let context : EvaluationContext = { } ;
1715 let details : EvaluationDetails < FlagValue > ;
1816 let fallback : FlagValue ;
19- let flagsChanged : string [ ] ;
2017
2118 const client = OpenFeature . getClient ( E2E_CLIENT_NAME ) ;
2219
@@ -266,7 +263,7 @@ export const flagStepDefinitions: StepDefinitions = ({ given, and, when, then })
266263 } ) ;
267264
268265 when ( 'a PROVIDER_CONFIGURATION_CHANGED handler is added' , ( ) => {
269- client . addHandler ( ProviderEvents . ConfigurationChanged , async ( details ) => {
266+ client . addHandler ( ProviderEvents . ConfigurationChanged , async ( ) => {
270267 // file writes are not atomic, so we get a few events in quick succession from the testbed
271268 // some will not contain changes, this tolerates that; at least 1 should have our change
272269
@@ -290,7 +287,7 @@ export const flagStepDefinitions: StepDefinitions = ({ given, and, when, then })
290287 expect ( ran ) . toBeTruthy ( ) ;
291288 } ) ;
292289
293- and ( / ^ t h e e v e n t d e t a i l s m u s t i n d i c a t e " ( .* ) " w a s a l t e r e d $ / , ( flagName ) => {
290+ and ( / ^ t h e e v e n t d e t a i l s m u s t i n d i c a t e " ( .* ) " w a s a l t e r e d $ / , ( ) => {
294291 // TODO: enable this for testing of issue
295292 //expect(flagsChanged).toContain(flagName);
296293 } ) ;
0 commit comments