Skip to content

Commit

Permalink
Add changelog entry and adhere to styleguide when exporting functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hthorhalls committed Oct 24, 2022
1 parent b63882d commit 2154843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- `[@jest/test-sequencer]` Make sure sharding does not produce empty groups ([#13476](https://github.com/facebook/jest/pull/13476))
- `[jest-circus]` Test marked as `todo` are shown as todo when inside a focussed describe ([#13504](https://github.com/facebook/jest/pull/13504))
- `[jest-mock]` Ensure mock resolved and rejected values are promises from correct realm ([#13503](https://github.com/facebook/jest/pull/13503))
- `[jest-snapshot]` Don't highlight passing asymmetric property matchers in snapshot diff ([#13480](https://github.com/facebook/jest/issues/13480))

### Chore & Maintenance

Expand Down
6 changes: 3 additions & 3 deletions packages/jest-matcher-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,19 +407,19 @@ const shouldPrintDiff = (actual: unknown, expected: unknown) => {
return true;
};

export const replaceMatchedToAsymmetricMatcher = (
export function replaceMatchedToAsymmetricMatcher(
replacedExpected: unknown,
replacedReceived: unknown,
expectedCycles: Array<unknown>,
receivedCycles: Array<unknown>,
): {replacedExpected: unknown; replacedReceived: unknown} => {
): {replacedExpected: unknown; replacedReceived: unknown} {
return _replaceMatchedToAsymmetricMatcher(
deepCyclicCopyReplaceable(replacedExpected),
deepCyclicCopyReplaceable(replacedReceived),
expectedCycles,
receivedCycles,
);
};
}

function _replaceMatchedToAsymmetricMatcher(
replacedExpected: unknown,
Expand Down

0 comments on commit 2154843

Please sign in to comment.