Bug: RangeError: Maximum call stack size exceeded
when encountering circular reference in component imported using forwardRef
#6143
Labels
bug
Something isn't working
Description of the bug
I am trying to write a test for a recursive standalone component, which imports a parent component, which imports this component, using
forwardRef(() => ParentComponent)
in theimports: []
array of the Component decorator declaration, like belowIf I comment out the import of the forwardRef the test correctly instantiates the component so it's definitely because of that.
I tried every possible way using
.mock
,.replace
,.keep
- but everything results in the above error.I'm on
ng-mocks 14.7.1
andangular 15.2.0
The text was updated successfully, but these errors were encountered: