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

Fix test errors with creating route methods #40

Merged
merged 2 commits into from
Dec 31, 2023
Merged

Conversation

pleek91
Copy link
Contributor

@pleek91 pleek91 commented Dec 31, 2023

Description

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using ts comments is going to be necessary in type files especially to test negatives. So I don't think we need to link for them in spec files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typescript sees that isPublic could be false so the type so it complains. Probably some type guarding we could do but didn't seem worth introducing for these tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sure we don't add empty objects for leaves that are not callable.

@pleek91 pleek91 merged commit 29c1039 into main Dec 31, 2023
3 checks passed
@pleek91 pleek91 deleted the fix-test-errors branch December 31, 2023 20:04
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

Successfully merging this pull request may close these issues.

2 participants