Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix(@schematics/angular): remove compileComponents from component test schematic #18316
Conversation
…t schematic `compileComponents` is not necessary when using the CLI (as the templates are inlined) and just adds boilerplate code. So we can remove it from the test schematic and make it independent from `async/await` (only place we would have it in the CLI generated code, and in most Angular apps).
edd7d22
to
bb3cfe1
@alan-agius4 Now that we are in v11, do you think we can land this PR? |
Let me bring this up with the rest of the team in our next team meeting. |
We're planning some further investigation of the In our discussion today, the immediate concern is around portability. If a developer runs tests via direct Karma or Jest integration, they must use All that said, we'll need to revisit this once we have a better understanding of the future of |
compileComponents
is not necessary when using the CLI and just adds boilerplate code, so we can remove it from the test schematic and make it independent fromasync/await
(only place we would have it in the CLI generated code, and in most Angular apps).