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(jest): interface and string token combination #26

Closed
wants to merge 1 commit into from

Conversation

iddan
Copy link
Collaborator

@iddan iddan commented Dec 13, 2022

Fixed the way tokens are reflected. Now it won't assume the type is defined and will make the best effort to use the token or type name. There are still scenarios that ref -> Object is left, that I think should throw but that's for another PR.

I removed the duplicates check there because I was not sure what it should do (I can bring it back but I need to know how to integrate it correctly).

I also updated some tests and types because I had false positives during development.

Resolves #25

@iddan iddan force-pushed the fix/token-reflection branch 2 times, most recently from d3d761f to 8935790 Compare December 13, 2022 09:58
Fixed the way tokens are reflected. Now it won't assume type is defined, and will make best effort to use token or type name.

Removed the duplicates check there because I was not sure what should it do (I can bring it back, just need to know how to integrate it correctly).

Resolves suites-dev#25
@omermorad omermorad changed the title Fix Token Reflection fix(jest): interface and string token combination Feb 3, 2023
@omermorad omermorad self-requested a review February 3, 2023 17:10
@omermorad omermorad closed this Feb 6, 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

Successfully merging this pull request may close these issues.

bug: combining @Inject() with an interface throws an error
2 participants