Skip to content

Commit

Permalink
Add comments RE: rationale for logic in treeForAddonTestSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Oct 21, 2020
1 parent b64d7b1 commit e073fbd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Expand Up @@ -43,10 +43,19 @@ module.exports = {
},
});
} else {
// this differs from ember-cli's default treeForAddonTestSupport in that it
// makes our test support modules available at `qunit-dom` **not**
// `qunit-dom/test-suppprt`
let scopedInputTree = new Funnel(`${__dirname}/dist/addon-test-support`, {
destDir: 'qunit-dom',
});

// in order to take advantage of ember-auto-import, we **must** use
// `preprocessJs` (because it instruments JS files looking for imports
// via the preprocessor registry)
//
// this also properly transpiles our files based on the consuming applications
// targets (through ember-cli-babel)
return this.preprocessJs(scopedInputTree, '/', this.name, {
annotation: `qunit-dom - treeForAddonTestSupport`,
registry: this.registry,
Expand Down

0 comments on commit e073fbd

Please sign in to comment.