Skip to content

Commit

Permalink
feat(reporters): export utils for path formatting (#9162)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Nov 10, 2019
1 parent 17c70f6 commit 4bca618
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -22,6 +22,7 @@
- `[@jest/fake-timers]` Add Lolex as implementation of fake timers ([#8897](https://github.com/facebook/jest/pull/8897))
- `[jest-get-type]` Add `BigInt` support. ([#8382](https://github.com/facebook/jest/pull/8382))
- `[jest-matcher-utils]` Add `BigInt` support to `ensureNumbers` `ensureActualIsNumber`, `ensureExpectedIsNumber` ([#8382](https://github.com/facebook/jest/pull/8382))
- `[jest-reporters]` Export utils for path formatting ([#9162](https://github.com/facebook/jest/pull/9162))
- `[jest-runner]` Warn if a worker had to be force exited ([#8206](https://github.com/facebook/jest/pull/8206))
- `[jest-snapshot]` Display change counts in annotation lines ([#8982](https://github.com/facebook/jest/pull/8982))
- `[jest-snapshot]` [**BREAKING**] Improve report when the matcher has properties ([#9104](https://github.com/facebook/jest/pull/9104))
Expand Down
13 changes: 13 additions & 0 deletions packages/jest-reporters/src/index.ts
Expand Up @@ -5,6 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/

import {
formatTestPath,
printDisplayName,
relativePath,
trimAndFormatPath,
} from './utils';

export {Config} from '@jest/types';
export {AggregatedResult, SnapshotSummary, TestResult} from '@jest/test-result';
export {default as BaseReporter} from './base_reporter';
Expand All @@ -14,3 +21,9 @@ export {default as NotifyReporter} from './notify_reporter';
export {default as SummaryReporter} from './summary_reporter';
export {default as VerboseReporter} from './verbose_reporter';
export {Reporter, ReporterOnStartOptions, SummaryOptions, Test} from './types';
export const utils = {
formatTestPath,
printDisplayName,
relativePath,
trimAndFormatPath,
};

0 comments on commit 4bca618

Please sign in to comment.