Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pretty-format)!: remove ConvertAnsi plugin in favour of jest-serializer-ansi-escapes #13040

Merged
merged 2 commits into from Jul 20, 2022

Conversation

mrazauskas
Copy link
Contributor

Resolves #12881

Summary

Perhaps it makes sense to remove ConvertAnsi plugin from pretty-format package in favour of jest-serializer-ansi-escapes?

Gains are tiny: less code shipped, no need for extra export.

Also the export was missing type declaration (see #12881). Plugin as a separate package resolves this issue.

Test plan

Green CI.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, works for me!

@SimenB SimenB merged commit 2842eb6 into jestjs:main Jul 20, 2022
@mrazauskas mrazauskas deleted the feat-remove-ConvertAnsi branch July 20, 2022 12:17
sounisi5011 added a commit to sounisi5011/npm-packages that referenced this pull request Jul 22, 2022
…rmat` to `jest-serializer-ansi-escapes`

The `ConvertAnsi` plugin has been removed from `pretty-format` by [#13040]. The replacement is [`jest-serializer-ansi-escapes`].

[#13040]: jestjs/jest#13040
[`jest-serializer-ansi-escapes`]: https://github.com/mrazauskas/jest-serializer-ansi-escapes
sounisi5011 added a commit to sounisi5011/npm-packages that referenced this pull request Jul 22, 2022
…rmat` to `jest-serializer-ansi-escapes` (#573)

* test(@sounisi5011/jest-binary-data-matchers): migrate from `pretty-format` to `jest-serializer-ansi-escapes`

    The `ConvertAnsi` plugin has been removed from `pretty-format` by [#13040]. The replacement is [`jest-serializer-ansi-escapes`].

    [#13040]: jestjs/jest#13040
    [`jest-serializer-ansi-escapes`]: https://github.com/mrazauskas/jest-serializer-ansi-escapes

* test(@sounisi5011/jest-binary-data-matchers): update snapshots
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2022
@SimenB
Copy link
Member

SimenB commented Aug 25, 2022

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Missing type definition for pretty-format/ConvertAnsi plugin
3 participants