Skip to content

Commit

Permalink
fix: publish error on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 10, 2021
1 parent a605b80 commit d3fded2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/jest-extract/src/run-tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'path';
import { runCLI } from 'jest';
import { Config } from '@jest/types';
import { error } from '@component-controls/logger';
import { JestTests } from '@component-controls/core';
import { findUpFile } from '@component-controls/core/node-utils';
import { AggregatedResult } from '@jest/test-result';
Expand Down Expand Up @@ -72,6 +73,7 @@ const runTestsWorker: fastq.asyncWorker<
[projectFolder],
);
} catch (err) {
error(testFiles[0], err);
return undefined;
}
const { coverageMap, testResults } = runResults.results;
Expand Down

0 comments on commit d3fded2

Please sign in to comment.