import { resolve } from 'path' ; import fs from 'fs' ; import yaml from 'js-yaml' ; const fixturesPath = resolve ( __dirname , '../../test/fixtures' ) ; export function loadConfig ( configFile ) { return yaml . load ( fs . readFileSync ( resolve ( fixturesPath , 'config' , configFile ) , 'utf-8' ) ) ; }