function resolveFixturePath(value) {
  let filePath = value;
  let dirname = path.dirname(filePath);
  while (POSSIBLE_ROOTS.every(root => path.basename(dirname) !== root)) {
    if (filePath === dirname) {
      throw new Error(
        `Could not find one of ${POSSIBLE_ROOTS} in path: ${value}`,
      );
    }
    filePath = dirname;
    dirname = path.dirname(filePath);
  }

  filePath = path.resolve(path.join(FIXTURE_PATH, filePath));
  return filePath;
}
Resolve a fixture path from a test to an absolute filepath.