I'm not aware of that. Too late for existing apps probably.
But looks useful for new apps.
I already refactored the TestBed to its own function so it can be imported and run anywhere, that's how I solved it.
Thanks. Of course, there's also the option to use shallow component tests, where we include no or only some view child components in our tests:
But we still have to put dependencies in declarations right?
Not with shallow components tests using NO_ERRORS_SCHEMA.
That's great. It's annoying to have to put everything in the TestBed module.
Anything in Angular is more complex than the other frameworks.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.