Skip to content

Conversation

@iftee-hussain
Copy link
Contributor

@iftee-hussain iftee-hussain commented Feb 7, 2021

In angular 11 Previously karma-coverage was validated only when in karma plugins config one of these was added
``'karma-coverage'orrequire('karma-coverage')`

This change will allow cli to validate karma-coverage plugin if in karma.conf.js 'karma-*' is used. Example:

plugins: [
      ...
      'karma-*',
      require('@angular-devkit/build-angular/plugins/karma'),
      ...
    ]

Fixes #19993

@google-cla google-cla bot added the cla: yes label Feb 7, 2021
@iftee-hussain iftee-hussain force-pushed the fix-ignoring-of-karma-plugin-configuration branch from 5f5151a to 60bc0cc Compare February 7, 2021 00:59
@iftee-hussain iftee-hussain changed the title fix: fixed ignoring of karma plugins config fix(@angular-devkit/build-angular): fixed ignoring of karma plugins config Feb 7, 2021
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 your contribution.

See below.

…onfig

Previously `karma-coverage` was validated only when in karma plugins config one of these was added
``'karma-coverage'` or `require('karma-coverage')`

This change will allow cli to validate `karma-coverage` plugin if in `karma.conf.js` `'karma-*'` is used. Example:
```
plugins: [
      ...
      'karma-*',
      require('@angular-devkit/build-angular/plugins/karma'),
      ...
    ]
```

Fixes angular#19993
@iftee-hussain iftee-hussain force-pushed the fix-ignoring-of-karma-plugin-configuration branch from 60bc0cc to 7434f5d Compare February 8, 2021 08:53
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 once again for your contribution. LGTM

@iftee-hussain
Copy link
Contributor Author

Thanks once again for your contribution. LGTM

Glad to contribute 😃

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Feb 8, 2021
@clydin clydin merged commit a7ffce1 into angular:master Feb 8, 2021
@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 Mar 11, 2021
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 target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Angular v11 ignores karma plugin config karma-* and throws error

3 participants