import { Chance } from "chance" ; import * as supertest from "supertest" ; /**
 * Chance.js instance to generate random values
 */ export const chance = new Chance ( ) ; /**
 * HTTP client for acceptance tests
 */ export const request = supertest ( `${ process . env . API_INVOKE_URL ! }/${ process . env . API_BASE_PATH ! }` ) ; param interval return export function wait ( interval ) { return new Promise < void > ( resolve => { const start = Date . now ( ) ; while ( true ) { if ( Date . now ( ) - start > interval ) { resolve ( ) ; break ; } } } ) ; }