Bug: MockModule
from ng-mocks
, NgFor
and @happy-dom/jest-environment
#874
Labels
bug
Something isn't working
Describe the bug
Hello, I'm using
Jest
andng-mocks
to test myAngular
code and I'm facing an error.On Angular you have some directives such as
*ngFor
which can be important through the moduleCommonModule
.But you can directly important that directive through
NgFor
.It happen that when using
jsdom
andng-mocks
to mock a Module, it works fine, but if I'm using@happy-dom/jest-environment
instead ofjsdom
it does not work anymore.To Reproduce
You can read more about the problem here (quick read don't worry), it seems to be the implementation done in
happy-dom
that cause the problem.MockModule
,NgFor
and@happy-dom/jest-environment
help-me-mom/ng-mocks#5465 (comment)Expected behavior
No error.
Screenshots/errors
Device:
Windows 11
Brave Beta
111
The text was updated successfully, but these errors were encountered: