mobxjs / mobx-state-tree

Full-featured reactive state management without the boilerplate
https://mobx-state-tree.js.org/
MIT License
6.9k stars 639 forks source link

Test/add property parsing tests #2051

Closed coolsoftwaretyler closed 10 months ago

coolsoftwaretyler commented 11 months ago

Adds explicit tests to function how types.model processes a given set a properties.

The goal here is not to test the internal toPropertiesObject explicitly, but to outline the behavior of MST model instantiation given different types of output, using the toPropertiesObject implementation as the current set of expectations.

Here's a blog post about it, if you're interested.