Skip to content

Commit

Permalink
fix(jest-phabricator): use default export (#12341)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 9, 2022
1 parent f2e3040 commit 5fdbf84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,8 @@

### Fixes

- `[jest-phabricator]` [**BREAKING**] Convert to ESM ([#12341](https://github.com/facebook/jest/pull/12341))

### Chore & Maintenance

- `[*]` [**BREAKING**] Drop support for Node v10 and v15 and target first LTS `16.13.0` ([#12220](https://github.com/facebook/jest/pull/12220))
Expand Down
6 changes: 4 additions & 2 deletions packages/jest-phabricator/src/index.ts
Expand Up @@ -38,6 +38,8 @@ function summarize(coverageMap: CoverageMap): CoverageMap {
return summaries;
}

export = function (results: AggregatedResult): AggregatedResult {
export default function PhabricatorProcessor(
results: AggregatedResult,
): AggregatedResult {
return {...results, coverageMap: summarize(results.coverageMap)};
};
}

0 comments on commit 5fdbf84

Please sign in to comment.