Skip to content

Commit 9583060

Browse files
authored
jest-diff: Add firstOrLastEmptyLineReplacement option and export 3 diffLines functions (#8955)
* jest-diff: Add trimmableLineReplacement option and export 3 diffLines functions * Fix prettier lint error in README.md * Update CHANGELOG.md * Rename function and remove unneeded export * Add splitLines0 as a named export * Fix prettier error in README.md * Move edge cases and splitLines0 after diffLinesUnified * Rename trimmableLineReplacement as firstOrLastEmptyLineReplacement * Fix prettier error in diff.test.ts file * Rename option in CHANGELOG.md
1 parent 1693028 commit 9583060

File tree

10 files changed

+536
-524
lines changed

10 files changed

+536
-524
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- `[jest-diff]` Add `includeChangeCounts` and rename `Indicator` options ([#8881](https://github.com/facebook/jest/pull/8881))
1414
- `[jest-diff]` Add `changeColor` and `patchColor` options ([#8911](https://github.com/facebook/jest/pull/8911))
1515
- `[jest-diff]` Add `trailingSpaceFormatter` option and replace cyan with `commonColor` ([#8927](https://github.com/facebook/jest/pull/8927))
16+
- `[jest-diff]` Add `firstOrLastEmptyLineReplacement` option and export 3 `diffLines` functions ([#8955](https://github.com/facebook/jest/pull/8955))
1617
- `[jest-environment-jsdom]` Add `fakeTimersLolex` ([#8925](https://github.com/facebook/jest/pull/8925))
1718
- `[jest-environment-node]` Add `fakeTimersLolex` ([#8925](https://github.com/facebook/jest/pull/8925))
1819
- `[@jest/fake-timers]` Add Lolex as implementation of fake timers ([#8897](https://github.com/facebook/jest/pull/8897))

0 commit comments

Comments
 (0)