Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for opaque types #73

Open
ritave opened this issue Nov 18, 2022 · 0 comments
Open

Add tests for opaque types #73

ritave opened this issue Nov 18, 2022 · 0 comments

Comments

@ritave
Copy link
Contributor

ritave commented Nov 18, 2022

We've added opaque types in MetaMask/snaps#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.

@FrederikBolding FrederikBolding transferred this issue from MetaMask/snaps Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant