Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected treeForTestSupport(): Tree | undefined {
if (this.customizes('treeForTestSupport')) {
todo(`${this.name} has customized the test support tree`);
} else if (this.hasStockTree('test-support')) {
// this one doesn't go through transpile yet because it gets handled as
// part of the consuming app. For example, imports should be relative to
// the consuming app, not our own package. That is some of what is lame
// about app trees and why they will go away once everyone is all MU.
return new Funnel(this.stockTree('test-support'), {
destDir: `${appPublicationDir}/tests`,
});
}
}
treeForAddon(): undefined {
todo(`ember-window-mock's API can't work as a v2 package, so we're leaving the test code in all the time`);
return undefined;
}
}
protected addonStylesTree(): Tree | undefined {
if (this.customizes('treeForAddonStyles')) {
todo(`${this.name} may have customized the addon style tree`);
} else if (this.hasStockTree('addon-styles')) {
return this.addonInstance.compileStyles(this.stockTree('addon-styles'));
}
}