-
-
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
Angular 10 support #148
Comments
Here is the related migration docs: |
There is also problem with MockComponent usage after upgrade to ng10 :
I have it in afterAll of every test which uses ng-mocks |
@dtomaszewski can you create a minimal reproduction of this bug on stackblitz? |
It seems that I solved it, I had to change
in my tsconfig.base.json (which caused more other issues btw :D ) Edit: unfortunately my fix broke other parts of app, Please try to compile application with ng mocks and tsconfig :
|
Hi. Which target did you have before?
… On 29. Jun 2020, at 18:40, Dariusz ***@***.***> wrote:
It seems that I solved it,
I had to change
... "module": "es2020" ...
in my tsconfig.base.json (which caused more other issues btw :D )
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
Thanks. I’m almost back and will be able to check the issue soon. |
thanks, setting module to es2020 for .spec file helped in my case but it'd be nice to look at it either way. |
Yesterday I checked the things and found that for TS 3.9 a big part of ng-mocks interfaces should be changed to fix issues caused by TS2339. |
Hi @dtomaszewski, after investigation I found that Current solution I found is to use |
@satanTime yes, my workaround was just to differentiate spec and app tsconfig files. I'm not a huge fan of this solution because I use nx and I need to change it in every library (and remember to include it to each new lib generated) :/ It's uncomfortable because somebody in team could forget to include it and everything will work fine... until ng-mocks is used in one spec file. |
Hi @satanTime, this workaround didn't work for me, as when I tried to change my
Any combination of Thankfully, this is in a project that doesn't make extensive use of |
Hi @benelliott, might you try to use |
Sorry, that was actually my bad, I think you meant that you need to put Setting
in |
Hi guys, might you check the latest version? it should work correctly on both es5 and es2015 |
Hello,
I'm testing. it seems to be working. I have other issues though, unrelated
to ng-mocks.
Kind regards,
Ian Corne
…On Sun, 12 Jul 2020 at 20:46, MG. ***@***.***> wrote:
Hi guys, might you check the latest version? it should work correctly both
es5 and es2015
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#148 (comment)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AAY3XTURMOXOG6RPRNNKC4LR3IAHZANCNFSM4OIFTZJA>
.
|
After upgrading to Angular 10 and attempting to run tests, I met the following error:
I believe it's due to the new
ModuleWithProviders
requirements.The text was updated successfully, but these errors were encountered: