question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More extensible snapshot plugin system (custom match and diff)

See original GitHub issue

Do you want to request a feature or report a bug? Request a feature

What is the current behavior? Currently we are only able to specify serializers for snapshot, i.e. expect.addSnapshotSerializer(serializer).

Comparison on actual/expected snapshot value is done on === equality comparison basis https://github.com/facebook/jest/blob/master/packages/jest-snapshot/src/State.js#L123

What is the expected behavior? Ability to specify custom compare/match function for other more advanced use cases

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SimenBcommented, Apr 24, 2018

Great! Feel free to comment here if the API is lacking.

PR also most welcome for some docs on that 😃

0reactions
github-actions[bot]commented, May 12, 2021

This issue 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 System recovery and snapshot management with Snapper
To display a “diff” between the pre- and post-version of a file, select it from the list. File diff. To restore one or...
Read more >
Taking the Leap: My First Steps in OpenSearch Plugins | Logz.io
The beauty of this architecture is that it enables you to customize the core program to your needs, without having to contribute to...
Read more >
Plugin List — pytest documentation
name summary last release status requi... pytest‑accept A pytest‑plugin for updating doctest outputs Jan 07, 2022 N/A pytes... pytest‑addons‑test 用于测试pytest的插件 Aug 02, 2021 N/A pytes... pytest‑aio...
Read more >
Plugins | Unreal Engine 4.27 Documentation
Most Plugins will only have one Module, but it is possible to create multiple, for example, if a Plugin contains some Editor-only functionality,...
Read more >
Introducing Volume Snapshot Alpha for Kubernetes
The Kubernetes volume plugin system already provides a powerful ... in the default snapshot class must match the CSI driver specified by the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found