How to test custom nestjs provider? #477
Unanswered
RWOverdijk
asked this question in
Q&A
Replies: 1 comment
-
I've solved this by using nest's testing utilities instead. But I am still curious how I could do the same with suites :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have a custom provider that uses a Symbol as the key, and returns a non-class type (a fetch client). The typing makes me think I am not allowed to?
I've already gotten the exact same provider using unitRef, which worked great:
But now I want to do something like this:
And it's not letting me, saying it is not assignable to type
Type
.Basically this: https://suites.dev/docs/developer-guide/adapters/identifiers but the closest example there uses a symbol to resolve a mocked (unitRef) instance. I want the actual thing.
Beta Was this translation helpful? Give feedback.
All reactions