Skip to content

Commit

Permalink
[QA][Code Coverage] Move the json def to easier location,
Browse files Browse the repository at this point in the history
such that devs can easily find it, change it and include those
changes in their PR's.
  • Loading branch information
wayneseymour committed Jul 16, 2020
1 parent 52597b2 commit fa0470d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ import { fromNullable } from '../either';

const ROOT = resolve(__dirname, '../../../../..');
const resolveFromRoot = resolve.bind(null, ROOT);
const path = `
src/dev/code_coverage/ingest_coverage/team_assignment/ingestion_pipeline_painless.json`;
const resolved = resolveFromRoot(path.trimStart());
const path = 'ingestion_pipeline_painless.json';
const resolved = resolveFromRoot(path);
const getContents = (scriptPath) => readFileSync(scriptPath, 'utf8');

export const fetch = () => fromNullable(resolved).map(getContents);

0 comments on commit fa0470d

Please sign in to comment.