I wrote this PR mostly to learn more about MobX-State-Tree internals - it adds some additional tests around types.model.
I personally learned a lot doing this, and I think the test coverage will be good! My intention is to keep doing things like this over the course of the next six months. Should accomplish two goals:
Get me more familiar with the library
The more test coverage we have about specific behaviors, the clearer it will be to us when PRs "break" the API. In an ideal state, we'd have appropriate tests to exercise the entire API surface, so that a passing test suite ensures us a changeset isn't breaking, and a failing test suite indicates we may have broken the API contract.
I also added the draft to a blog post. I intend to publish that on my blog, but I wanted to include it in this PR for now to get some early feedback on it. I added it as a standalone commit, so we can rebase and drop it pretty easily.
I wrote this PR mostly to learn more about MobX-State-Tree internals - it adds some additional tests around
types.model
.I personally learned a lot doing this, and I think the test coverage will be good! My intention is to keep doing things like this over the course of the next six months. Should accomplish two goals:
I also added the draft to a blog post. I intend to publish that on my blog, but I wanted to include it in this PR for now to get some early feedback on it. I added it as a standalone commit, so we can rebase and drop it pretty easily.