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
halldorbjarni committed Oct 23, 2022
1 parent bdf930f commit 3da0bf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
### Fixes

- `[@jest/test-sequencer]` Make sure sharding does not produce empty groups ([#13476](https://github.com/facebook/jest/pull/13476))
- `[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
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 3da0bf2

Please sign in to comment.