-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
25 lines (21 loc) · 717 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* eslint-env node */
'use strict';
module.exports = {
name: 'ember-test-selectors-helpers',
treeForAddonTestSupport(tree) {
// intentionally not calling _super here
// so that can have our `import`'s be
// import { click, fillIn } from 'ember-native-dom-helpers';
// total ripoff of
// https://github.com/cibernox/ember-native-dom-helpers/blob/master/index.js
const Funnel = require('broccoli-funnel');
let namespacedTree = new Funnel(tree, {
srcDir: '/',
destDir: `/${this.moduleName()}`,
annotation: `Addon#treeForTestSupport (${this.name})`,
});
return this.preprocessJs(namespacedTree, '/', this.name, {
registry: this.registry,
});
}
};