mobxjs / mobx-state-tree

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

test: add t.number tests #2123

Closed coolsoftwaretyler closed 7 months ago

coolsoftwaretyler commented 7 months ago

What does this PR do and why?

Quite similar to https://github.com/mobxjs/mobx-state-tree/pull/2121, but for t.number instead.

There are some modifications, like Infinity and NaN will get 'number' when you ask JS for typeof, but other than that, the structure here is mostly the same.

Steps to validate locally

Since this is purely new test coverage, I'm going to merge this in assuming CI passes.