More extensible snapshot plugin system (custom match and diff)
See original GitHub issueDo 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:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great! Feel free to comment here if the API is lacking.
PR also most welcome for some docs on that 😃
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.