utils
utils copied to clipboard
Add tests for opaque types
We've added opaque types in MetaMask/snaps-monorepo#961. Those types are not testable using normal jest, but we can use tsd to write tests for types like we do in https://github.com/MetaMask/utils/blob/main/src/json.test-d.ts.
We should ensure that SemVerVersion
and SemVerRange
are not assignable to each other.