MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / getLintTests

Method getLintTests

lib/broccoli/ember-app.js:1046–1075  ·  view source on GitHub ↗

Runs the `app`, `tests` and `templates` trees through the chain of addons that produces lint trees. Those lint trees are afterwards funneled into the `tests` folder, babel-ified and returned as an array. @private @method getLintTests @return {Array}

()

Source from the content-addressed store, hash-verified

1044 @return {Array}
1045 */
1046 getLintTests() {
1047 let lintTrees = [];
1048
1049 if (this.trees.app) {
1050 let lintedApp = this.addonLintTree('app', this.trees.app);
1051 lintedApp = new Funnel(lintedApp, {
1052 destDir: 'lint',
1053 annotation: 'Funnel (lint app)',
1054 });
1055
1056 lintTrees.push(lintedApp);
1057 }
1058
1059 let lintedTests = this.addonLintTree('tests', this.trees.tests);
1060 let lintedTemplates = this.addonLintTree('templates', this._templatesTree());
1061
1062 lintedTests = new Funnel(lintedTests, {
1063 destDir: 'lint',
1064 annotation: 'Funnel (lint tests)',
1065 });
1066
1067 lintedTemplates = new Funnel(lintedTemplates, {
1068 destDir: 'lint',
1069 annotation: 'Funnel (lint templates)',
1070 });
1071
1072 return mergeTrees([lintedTests, lintedTemplates].concat(lintTrees), {
1073 overwrite: true,
1074 });
1075 }
1076
1077 /**
1078 @public

Callers 1

getTestsMethod · 0.95

Calls 2

addonLintTreeMethod · 0.95
_templatesTreeMethod · 0.95

Tested by

no test coverage detected