Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5fdbf84

Browse files
authored
fix(jest-phabricator): use default export (#12341)
1 parent f2e3040 commit 5fdbf84

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### Fixes
1010

11+
- `[jest-phabricator]` [**BREAKING**] Convert to ESM ([#12341](https://github.com/facebook/jest/pull/12341))
12+
1113
### Chore & Maintenance
1214

1315
- `[*]` [**BREAKING**] Drop support for Node v10 and v15 and target first LTS `16.13.0` ([#12220](https://github.com/facebook/jest/pull/12220))

packages/jest-phabricator/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ function summarize(coverageMap: CoverageMap): CoverageMap {
3838
return summaries;
3939
}
4040

41-
export = function (results: AggregatedResult): AggregatedResult {
41+
export default function PhabricatorProcessor(
42+
results: AggregatedResult,
43+
): AggregatedResult {
4244
return {...results, coverageMap: summarize(results.coverageMap)};
43-
};
45+
}

0 commit comments

Comments
 (0)