Skip to content

Conversation

@teogeb
Copy link
Contributor

@teogeb teogeb commented Nov 21, 2024

The output is now similar to toEqualPeerDescriptor() (see #2892).

The custom matcher implementation now uses stricter types. Also improved output when the error thrown is a primitive value.

@github-actions github-actions bot added the sdk label Nov 21, 2024
@teogeb teogeb force-pushed the unify-sdk-toThrowStreamrError branch from 828bab6 to e7c049c Compare November 22, 2024 16:52
Co-authored-by: Santeri Juslenius <[email protected]>
@teogeb teogeb merged commit aa406f7 into main Nov 26, 2024
23 checks passed
@teogeb teogeb deleted the unify-sdk-toThrowStreamrError branch November 26, 2024 12:17
teogeb added a commit that referenced this pull request Dec 11, 2024
## Background

Jest error messages typically contain ANSI color codes. In
`customMatchers.test.ts`, we asserted these messages without accounting
for the color codes, which caused test failures. However, the tests
passed in environments where colors were disabled (e.g., CI).

These test cases were added in
#2894.

## Changes

Modified the assertions to allow color codes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants