Feature Request: MockBuilder strict mode with standalone components #7577
StavNoyAkur8
started this conversation in
Ideas
Replies: 1 comment
-
Thank you for the idea, I've create an FR to implement this: #7800 feel free to follow there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Strict mode is a great feature.
It is activated when passing 2+ parameters - typically the tested component and it's module.
But standalone components don't have a module to pass as a second parameter.
We can simply pass
null
as the second parameters, or an empty array (which would usually be used for keeping multiple modules), but that's not obvious, and hard to enforce on a large project:What I'd like: Detect that a component is standalone, make it activate strict mode.
Alternative: Allow global config of strict mode the default, regardless of standalone. Probably a bigger feature altogether
Beta Was this translation helpful? Give feedback.
All reactions