import { setWorldConstructor } from 'cucumber'; setWorldConstructor( class World { // this class gets instantiated before the tests start and // the value created from that instatiation is what is available in hooks and steps as "this" } );