Skip to content

How to mock a dynamically imported standalone component inside a standalone component #4693

Answered by satanTime
AE1NS asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AE1NS
Comment options

@satanTime
Comment options

@satanTime
Comment options

Answer selected by satanTime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants