Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lmd59 committed Nov 17, 2024
1 parent c81ed1b commit 8c3e202
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions regression/regression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const verbose = process.argv[3] === 'true';
const REGRESSION_OUTPUT_DIR = path.join(__dirname, `./output/${regressionBaseName}`);
const CTHON_BASE_PATH = path.join(__dirname, './default-bundles/connectathon/fhir401/bundles/measure');
const ECQM_CONTENT_BASE_PATH = path.join(__dirname, './default-bundles/ecqm-content-r4-2021/bundles/measure');
const ECQM_CONTENT_QICORE_BASE_PATH = path.join(__dirname, './default-bundles/ecqm-content-qicore-2022/bundles/measure');
const ECQM_CONTENT_QICORE_BASE_PATH = path.join(
__dirname,
'./default-bundles/ecqm-content-qicore-2022/bundles/measure'
);
const BUNDLES_BASE_PATH = path.join(__dirname, './bundles'); // folders in this directory are assumed to have a coverage script bundles format

const RESET = '\x1b[0m';
Expand Down Expand Up @@ -119,10 +122,13 @@ async function main() {
await calculateRegression(filesPath, testFilePaths, measureBundle, dir.shortName);
}

// Everything in the BUNDLES_BASE_PATH directory is expected in $set_name/measure/$measure_name structure with
// Everything in the BUNDLES_BASE_PATH directory is expected in $set_name/measure/$measure_name structure with
// $measure_name-v332.json, $measure_name-v314.json, and $measure_name-TestCases folder within
const baseBundlePaths = fs.readdirSync(BUNDLES_BASE_PATH).filter(f => !f.startsWith('.')).map(f => (path.join(BUNDLES_BASE_PATH, f, 'measure')));
await baseBundlePaths.forEach( async dirPath => {
const baseBundlePaths = fs
.readdirSync(BUNDLES_BASE_PATH)
.filter(f => !f.startsWith('.'))
.map(f => path.join(BUNDLES_BASE_PATH, f, 'measure'));
await baseBundlePaths.forEach(async dirPath => {
// coverage directory organized with multiple measures for each set of test files
const covDirs = fs.readdirSync(dirPath).map(f => ({
shortName: f,
Expand Down

0 comments on commit 8c3e202

Please sign in to comment.