-
Hey, I have two standalone components, Test1Component and Test2Component. Test1Component dynamically imports Test2Component
as the docs says, this mocks only the imports and thats working as expected, but how can I mock the component itself and ignore its imports? This also does not work and also seem to just mock the imports but everytime, my implementation is called (tested it with a console.log):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Updated 14.6.0 supports that: https://ng-mocks.sudo.eu/guides/mock/dynamic-components Original Hi @AE1NS, please submit a feature request with an example of the code and how you would like to mock it. You can use https://codesandbox.io/s/github/help-me-mom/ng-mocks-sandbox?file=/src/test.spec.ts as a template. |
Beta Was this translation helpful? Give feedback.
Updated
14.6.0 supports that: https://ng-mocks.sudo.eu/guides/mock/dynamic-components
Original
Hi @AE1NS, please submit a feature request with an example of the code and how you would like to mock it.
You can use https://codesandbox.io/s/github/help-me-mom/ng-mocks-sandbox?file=/src/test.spec.ts as a template.