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
Since the original imported directive (TestDirective) is a standalone: true directive, the mocked version (MockOfTestDirective) should also be a standalone and the MockBuilder should be able to mock it as expected.
Not sure if I am missing anything or doing something wrong, but I did the same test with a standalone Pipe and it worked ok.
Is this scenario already supported ?
What I could be doing wrong here ?
Thanks !
The text was updated successfully, but these errors were encountered:
Description of the bug
When mocking a standalone directive imported by a standalone component, an error is throw saying that MockOfDirective is not standalone
Error: The "MockOfTestDirective" directive, imported from "TargetComponent", is not standalone. Did you forget to add the standalone: true flag?
An example of the bug
https://stackblitz.com/edit/github-7zh6cj?file=src%2Ftest.spec.ts
Link:
Expected vs actual behavior
Since the original imported directive (TestDirective) is a standalone: true directive, the mocked version (MockOfTestDirective) should also be a standalone and the MockBuilder should be able to mock it as expected.
Not sure if I am missing anything or doing something wrong, but I did the same test with a standalone Pipe and it worked ok.
Is this scenario already supported ?
What I could be doing wrong here ?
Thanks !
The text was updated successfully, but these errors were encountered: