Skip to content

Commit

Permalink
prevent ember-cli-code-coverage babel plugin setup from leaking when …
Browse files Browse the repository at this point in the history
…parent runs tests w/ COVERAGE=true
  • Loading branch information
phndiaye committed Dec 23, 2024
1 parent 19006a6 commit 8d6b0b0
Show file tree
Hide file tree
Showing 3 changed files with 1,953 additions and 262 deletions.
12 changes: 8 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ module.exports = {
options: {
'ember-cli-babel': {
includePolyfill: true
},
babel: {
/* eslint-disable node/no-unpublished-require */
plugins: [...require('ember-cli-code-coverage').buildBabelPlugin()]
}
},

included(parent) {
this._super.included.apply(this, arguments);

if (parent.project.pkg.name === name) {
this.options.babel.plugins.push(...require('ember-cli-code-coverage').buildBabelPlugin());

Check failure on line 25 in index.js

View workflow job for this annotation

GitHub Actions / Lint & Test

"ember-cli-code-coverage" is not published
}
},

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@ember/string": "^3.1.1",
"@embroider/macros": "^1.16.1",
"@googlemaps/js-api-loader": "^1.16.2",
"@upfluence/ember-brand-manager": "^0.x",
"@upfluence/hyperevents": "^0.x",
"@upfluence/ember-brand-manager": "^1.0.3",
"@upfluence/hyperevents": "^0.3.7",
"calculate-cache-key-for-tree": "^2.0.0",
"ember-auto-import": "^2.7.2",
"ember-cli-babel": "^7.26.10",
Expand Down Expand Up @@ -85,7 +85,7 @@
"@types/rsvp": "^4.0.4",
"@types/sinon": "^10.0.6",
"@typescript-eslint/parser": "^5.0.0",
"@upfluence/oss-components": "^3.55.0",
"@upfluence/oss-components": "^3.71.6",
"ember-cli": "~3.28.6",
"ember-cli-code-coverage": "^3.0.0",
"ember-cli-dependency-checker": "^3.2.0",
Expand Down
Loading

0 comments on commit 8d6b0b0

Please sign in to comment.