Skip to content

refactor(schematics): run tests for template files #12562

New issue

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

Conversation

devversion
Copy link
Member

  • No longer skips tests that verify that the template files are properly created as part of the schematic. This is now possible because we have a more clean workaround for the schematic testing (related: require('./file.json') or __dirname work as expected in JavaScript but not TypeScript bazelbuild/rules_typescript#154)
  • Updates all schema.json files to properly match the current implementation of the build-component function (consistent with ng g component)
  • Due to the new workaround for the schematic testing we can also now re-add the schema.json files to the collection. The schema files are needed for the schematics when using ng generate)

@devversion devversion added pr: merge safe target: major This PR is targeted for the next major release labels Aug 7, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 7, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 7, 2018
@josephperrott josephperrott added pr: needs rebase and removed action: merge The PR is ready for merge by the caretaker labels Aug 7, 2018
* No longer skips tests that verify that the template files are properly created as part of the schematic. This is now possible because we have a more clean workaround for the schematic testing (related: bazelbuild/rules_typescript#154)
* Updates all schema.json files to properly match the current implementation of the `build-component` function (consistent with `ng g component`)
* Due to the new workaround for the schematic testing we can also now re-add the `schema.json` files to the collection. The schema files are needed for the schematics when using `ng generate`)
@devversion devversion force-pushed the refactor/schematics-run-tests-template branch from a05695e to d7dc93e Compare August 8, 2018 14:06
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels Aug 8, 2018
@josephperrott josephperrott merged commit 7756882 into angular:master Aug 9, 2018
@devversion devversion deleted the refactor/schematics-run-tests-template branch August 9, 2018 14:46
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants