nitro
nitro copied to clipboard
test: correct type inference for routes
๐ Linked issue
resolves https://github.com/nuxt/framework/issues/7363, https://github.com/nuxt/framework/issues/8078
โ Type of change
- [x] ๐งน Chore
- [ ] ๐ Documentation (updates to the documentation or readme)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
toMatchTypeOf can be misleading - this updates test for greater strictness. There are a few issues that appear in consequence; I'm marking PR as draft until we can fix them.
๐ Checklist
- [ ] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.