-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Mocking ReactiveFormsModule causes tests to fail #302
Comments
Hi, thanks for the report. The fix will be released on the weekend. |
@satanTime nah, thank you for awesome library and the quick reply :D |
Hi @ma7moudat, could you verify that the fixed version works for you? |
Hi @satanTime, |
v11.7.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems. |
Sumary:
After updating ng-mocks from 11.5.0 to 11.6.0 tests that were running normally fail now, all with the same error.
Angular v11.2.0
Reproduction:
Result:
Upon running the test in reproduction above, the following error is thrown:
Findings:
MockModule(ReactiveFormsModule)
toReactiveFormsModule
in the imports or when I remove[formControl]=control
from the template.No other usages of/ Just found out that mocking other modules that have something to do with form elements (e.g.MockModule
seem to cause the problem.MatInputModule
orMatInputCheckbox
from @angular/material) also causes the problem.The text was updated successfully, but these errors were encountered: