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 1286d9e commit cbe1861
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ module.exports = {
setOwnConfig: {
buildEnv: process.env.BUILD_ENV || 'staging'
}
},
babel: {
plugins: [...require('ember-cli-code-coverage').buildBabelPlugin()]
}
},

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

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

Expand Down

0 comments on commit cbe1861

Please sign in to comment.