File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
libs/providers/flagd/src/e2e Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export const UNSTABLE_CLIENT_NAME = 'unstable';
55export const UNAVAILABLE_CLIENT_NAME = 'unavailable' ;
66
77export const GHERKIN_FLAGD = getGherkinTestPath ( '*.feature' ) ;
8+ export const CONFIG_FEATURE = getGherkinTestPath ( 'config.feature' ) ;
89export const CONNECTION_FEATURE = getGherkinTestPath ( 'connection.feature' ) ;
910export const CONTEXT_ENRICHMENT_FEATURE = getGherkinTestPath ( 'contextEnrichment.feature' ) ;
1011export const EVALUATION_FEATURE = getGherkinTestPath ( 'evaluation.feature' ) ;
Original file line number Diff line number Diff line change 1+ import { configSteps } from '../step-definitions/configSteps' ;
2+ import type { State } from '../step-definitions/state' ;
3+ import { autoBindSteps , loadFeatures } from 'jest-cucumber' ;
4+ import { CONFIG_FEATURE } from '../constants' ;
5+
6+ jest . setTimeout ( 50000 ) ;
7+ describe ( 'config' , ( ) => {
8+ const state : State = {
9+ resolverType : 'in-process' ,
10+ options : { } ,
11+ config : undefined ,
12+ events : [ ] ,
13+ } ;
14+ autoBindSteps (
15+ loadFeatures ( CONFIG_FEATURE , {
16+ scenarioNameTemplate : ( vars ) => {
17+ return `${ vars . scenarioTitle } (${ vars . scenarioTags . join ( ',' ) } ${ vars . featureTags . join ( ',' ) } )` ;
18+ } ,
19+ } ) ,
20+ [ configSteps ( state ) ] ,
21+ ) ;
22+ } ) ;
You can’t perform that action at this time.
0 commit comments