feat: wrappers and test helpers - #41
Conversation
chladnefazole
left a comment
There was a problem hiding this comment.
Could you also store the examples somewhere, in readme or contributing or whatnot?
It's kind of abstract, I would like to see examples with something from stonehenge or a real use case, but it's interesting, possibly could help with the horrendous giant mocks I had to setup in Content before...
What for ? ... there are 3 examples of what was being added. There is a better documentation on the other PR, so you can approve that one and you will have it. |
|
@pavelsmejkal Which other PR? |
There are agent skills for each plumber area with explanation. once merged i will describe same way features introduced in this PR |
|
🎉 This PR is included in version 1.16.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Please read CONTRIBUTING.md for additional information on contributing to this repository!
What this PR does / why we need it
Helpers to make testing easier
SavePoints and ResetDefinition are solving a problem - the dependency graph is normally evaluated just once and than all the instances are kept. With the
SavepointandResetDefinitionyou can redefine certain graph leafs and those will be re-evaluated. The re-evaluation as well cascades to deps that depends on the one that is being reset.Instance wrappers
Jira ID
[XX-XX]
Notes for your reviewers