import glob from 'glob' ; import path from 'path' ; import { FtrProviderContext } from '../common/ftr_provider_context' ; const cwd = path . join ( __dirname ) ; export default function apmApiIntegrationTests ( { getService , loadTestFile } ) { const registry = getService ( 'registry' ) ; describe ( 'APM API tests' , function ( ) { this . tags ( 'ciGroup1' ) ; const tests = glob . sync ( '**/*.spec.ts' , { cwd } ) ; tests . forEach ( ( test ) => { describe ( test , function ( ) { loadTestFile ( require . resolve ( `./${ test }` ) ) ; } ) ; } ) ; registry . run ( ) ; } ) ; }