Skip to content

Commit

Permalink
feat: QPPA-7860 fix jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ckawell-sb committed Aug 11, 2023
1 parent eddcbb1 commit ec7b966
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/benchmarks/validation.business.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('validation.business', () => {
modifiedBenchmarks,
volatileBenchmarksCahps
);
benchmarkBusinessValidation(2023);
benchmarkBusinessValidation('benchmarks.json', 2023);

expect('').toBe('No error thrown when one expected');
} catch (errors: any) {
Expand All @@ -76,7 +76,7 @@ describe('validation.business', () => {
});

it('validates 2023 benchmarks data', () => {
const result = benchmarkBusinessValidation(2023);
const result = benchmarkBusinessValidation('benchmarks.json', 2023);

expect(logSpy).not.toBeCalled();
expect(result).toBeFalsy();
Expand Down
4 changes: 3 additions & 1 deletion scripts/benchmarks/validation.business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@ export function benchmarkBusinessValidation(jsonName: string, performanceYear: n
}
}

benchmarkBusinessValidation(process.argv[2], parseInt(process.argv[3]));
/* istanbul ignore next */
if (process.argv[2] && process.argv[2] !== '--coverage')
benchmarkBusinessValidation(process.argv[2], parseInt(process.argv[3]));

0 comments on commit ec7b966

Please sign in to comment.