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
Then I get an error along the lines of ctx.count is not a function.
I believe this is because count is being set to null and then the template is trying to call it as a function.
I am able to use Mock Instance to create a custom mock of the signal to avoid this.
Was not sure if the way it currently works is the desired behavior.
Proposed solution
Instead of setting a signal mock to null, set it to signal(null).
The text was updated successfully, but these errors were encountered:
Given I use a signal in an html template like below
And I want to have a mock version of it when testing a different component.
Then I get an error along the lines of ctx.count is not a function.
I believe this is because count is being set to null and then the template is trying to call it as a function.
I am able to use Mock Instance to create a custom mock of the signal to avoid this.
Was not sure if the way it currently works is the desired behavior.
Proposed solution
Instead of setting a signal mock to null, set it to signal(null).
The text was updated successfully, but these errors were encountered: