-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ngx-translate coverage in e2e #10752
Comments
Hi, I'm trying to fix it too. Have you noticed that pipes are now standalone by default? I don't understand a thing - why not use the isStandalone method from @angular/core to check this? It would seem to be the most direct way to determine a component|directive|pipe standalone status. |
I'll backport its implementation. The issue here is that this function doesn't exist in older angular versions and will break ng-mocks at project compilations. |
I've made this, It's late and I'm not sure what I did - there's definitely an ugly part in there, but it seems to work for me. Maybe it can help you |
@satanTime,
|
Hi @ytchenak @satanTime |
The fix isn't sufficient to support non-standalone components in third-party libraries like ngx-translate.
I applied the following fix to ensure support:
libs/ng-mocks/src/lib/mock/decorate-declaration.ts
Originally posted by @ytchenak in #10583 (comment)
The text was updated successfully, but these errors were encountered: