Skip to content
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

feat(@angular-devkit/build-angular): add --reporters option to test #12404

Merged
merged 1 commit into from
Oct 1, 2018

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Sep 28, 2018

It was a regression, and used by enough people on CI. No reason it should be
omitted and karma.conf.js only.

Fixes #11376

clydin
clydin previously approved these changes Sep 28, 2018
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

Can you add the definition also in here please:

if (options.reporters) {
// Split along commas to make it more natural, and remove empty strings.
karmaOptions.reporters = options.reporters
.reduce<string[]>((acc, curr) => acc.concat(...curr.split(/,/)), [])
Copy link
Collaborator

@alan-agius4 alan-agius4 Sep 28, 2018

Choose a reason for hiding this comment

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

Is the spread operator really needed here togather with concat?

If you want to use the spread it should be;

[
   ...acc,
   ...curr.split(/,/),
]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

It was a regression, and used by enough people on CI. No reason it should be
omitted and karma.conf.js only.

Fixes angular#11376
@hansl
Copy link
Contributor Author

hansl commented Sep 28, 2018

@alan-agius4 Done both comments; added to the angular.json schema and removed spread. PTAL.

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

Thanks for the updates. LGTM.

@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Sep 28, 2018
@alexeagle alexeagle merged commit 3fd6afc into angular:master Oct 1, 2018
@hansl hansl deleted the fix-11376 branch November 29, 2018 01:16
@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 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng test Unknown option --reporters
6 participants