We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am creating a schematic that overwrites existing Angular schematics. I do it like this:
return chain([ externalSchematic('angular', 'class', options, {interactive: true}), // other rules ]);
I am unable to test it using SchematicTestRunner because I can only register a single collection in it.
SchematicTestRunner
I can make the test work by doing this:
const testRunner = new SchematicTestRunner(collectionUnderTest, path); testRunner['_engineHost'].registerCollection(externalCollection, path);
I would like a registerCollection method on the SchematicTestRunner so I don't need to depend on private fields.
registerCollection
The text was updated successfully, but these errors were encountered:
feat(@angular-devkit/schematics): Add registerCollection to Schematic…
ba44d94
…sTestRunner Fixes #14833
11c8e93
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
🚀 Feature request
Description
I am creating a schematic that overwrites existing Angular schematics. I do it like this:
I am unable to test it using
SchematicTestRunner
because I can only register a single collection in it.Describe the solution you'd like
I can make the test work by doing this:
I would like a
registerCollection
method on theSchematicTestRunner
so I don't need to depend on private fields.The text was updated successfully, but these errors were encountered: