All files / src/helpers import.ts

27.78% Statements 5/18
33.33% Branches 3/9
0% Functions 0/8
38.46% Lines 5/13
1 2 3 4 5 6 7 8  1x            
import * as fs from 'fs';
import {promisify} from 'util';

export async function loadFile(path: string): Promise<string> {
  const contents = await promisify(fs.readFile)(path, 'utf-8');
  return contents;
}