-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
test: unit and type tests for createPages #692
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
How about something like 403f477 ? |
Haha, yeah obviously. I was tunnel-visioned on |
Same. I thought about using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good overall. Let me know when it's ready to merge.
Lets go! |
I have not yet found a way to add type-tests for
CreatePage
andCreateLayout
. Since the generic is on the function and not on the argument, thepath
property always resolves tonever
. I'm not sure if a test is even possible in this case. Any suggestions are welcome.