Skip to content

Conversation

@teogeb
Copy link
Contributor

@teogeb teogeb commented Dec 10, 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.

@github-actions github-actions bot added the sdk label Dec 10, 2024
@teogeb teogeb force-pushed the sdk-fix-ansi-colors-in-custom-matcher-test branch from 5d8c0ee to a2e75ed Compare December 10, 2024 13:05
@teogeb teogeb requested review from harbu and juslesan December 10, 2024 13:13
@teogeb teogeb merged commit 545f5db into main Dec 11, 2024
24 checks passed
@teogeb teogeb deleted the sdk-fix-ansi-colors-in-custom-matcher-test branch December 11, 2024 21:38
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