UNPKG

protractor-junit-flake

Version:

A wrapper for protractor to automatically re-run failed tests for a specific number of attempts

7 lines (5 loc) 199 B
import { readFileSync } from 'fs' import { resolve } from 'path' export default function readFixture (fixtureFile) { return readFileSync(resolve(__dirname, `./fixtures/${fixtureFile}`), 'utf8') }