Skip to content

ngMocks.defaultMock in test.ts not working for MockBuilder + standalone component #4705

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

You must be logged in to vote

Hi,

you shouldn't import from spec files.

If you need to define something in the spec file, then defaultMock should be there too.

An example is TitleStrategy above in the code.

Replies: 1 comment 5 replies

Comment options

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

@satanTime
Comment options

@AE1NS
Comment options

@satanTime
Comment options

@AE1NS
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