You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's assume having a component SystemUnderTestComponent as the SUT. This component internally renders ActionsComponent, which will be mocked within the test setup. ActionsComponent uses the new API contentChildren for accessing its content children. Unfortunately this API causes problems for SystemUnderTestComponent as the following error is thrown: TypeError: Cannot read properties of undefined (reading 'Symbol(SIGNAL)').
Description of the bug
Let's assume having a component
SystemUnderTestComponent
as the SUT. This component internally rendersActionsComponent
, which will be mocked within the test setup.ActionsComponent
uses the new APIcontentChildren
for accessing its content children. Unfortunately this API causes problems forSystemUnderTestComponent
as the following error is thrown:TypeError: Cannot read properties of undefined (reading 'Symbol(SIGNAL)')
.An example of the bug
https://codesandbox.io/p/sandbox/competent-fermat-llrjgt?file=%2Fsrc%2Ftest.spec.ts%3A35%2C35
Expected behavior
I would expect that the tests of
SystemUnderTestComponent
are not influenced by internals of the mocked componentActionsComponent
.Maybe this behavior is caused by the fact that
ActionsComponent
is mocked and Angular can't findActionComponent
?The text was updated successfully, but these errors were encountered: