getsaf / shallow-render

Angular testing made easy with shallow rendering and easy mocking. https://getsaf.github.io/shallow-render
MIT License
273 stars 25 forks source link

Testing ng-template child rendering #215

Closed vticnikisi closed 2 years ago

vticnikisi commented 2 years ago

With reference to existing issue #165, how should I test rendering of the child component ?

I have created simple test case

https://stackblitz.com/edit/github-3wajlf-ruzucl?file=examples%2Ftemplate.spec.ts

getsaf commented 2 years ago

It looks like the sub-content doesn't actually render in your example (even outside of a test):

https://stackblitz.com/edit/angular-ivy-vswyha?file=src%2Fapp%2Fawesome.component.ts

getsaf commented 2 years ago

Closed due to inactivity. Appeared to be a non-issue