testing Angular Generic component #579
Unanswered
bunsenbeaker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All!
I have a n Angular 12 generic component I'd like to test with Spectator.
In my spec, I'm using:
Unless I use <any,any> as types, I'm getting the following error (when I use specific types) :
Type 'Spectator<MyComponent<unknown, unknown>>' is not assignable to type 'Spectator<MyComponent<MyTypeA, MyTypeB>>'
or a parsing error if I use:
component: MyComponent,<MyTypeA, MyTypeB>
Any suggestions?
Tnx!
Beta Was this translation helpful? Give feedback.
All reactions