Skip to content

Commit

Permalink
Revert "Switch to treeForAddonTestSupport (#89)"
Browse files Browse the repository at this point in the history
This reverts commit 0723629.
  • Loading branch information
Turbo87 authored Apr 7, 2017
1 parent c38c95e commit 73f5cab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 5 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/* eslint-env node */

const VersionChecker = require('ember-cli-version-checker');
const Funnel = require('broccoli-funnel');

module.exports = {
name: 'ember-test-selectors',
Expand Down Expand Up @@ -80,20 +79,11 @@ module.exports = {
}
},

treeForAddonTestSupport(tree) {
// intentionally not calling _super here
// so that can have our `import`'s be
// import testSelector from 'ember-test-selectors';

let namespacedTree = new Funnel(tree, {
srcDir: '/',
destDir: `/${this.moduleName()}`,
annotation: `Addon#treeForTestSupport (${this.name})`,
});

return this.preprocessJs(namespacedTree, '/', this.name, {
registry: this.registry,
});
treeForAddon() {
// remove our "addon" folder from the build if we're stripping test selectors
if (!this._stripTestSelectors) {
return this._super.treeForAddon.apply(this, arguments);
}
},

preprocessTree(type, tree) {
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"test:strip": "STRIP_TEST_SELECTORS=true ember test"
},
"dependencies": {
"broccoli-funnel": "^1.1.0",
"broccoli-stew": "^1.4.0",
"ember-cli-babel": "^5.1.7",
"ember-cli-version-checker": "^1.2.0"
},
Expand Down

0 comments on commit 73f5cab

Please sign in to comment.