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

Method processTestIndex

lib/broccoli/default-packager.js:779–801  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

777 * @return {BroccoliTree}
778 */
779 processTestIndex(tree) {
780 let index = new Funnel(tree, {
781 srcDir: '/tests',
782 files: ['index.html'],
783 destDir: '/tests',
784 annotation: 'Funnel (test index)',
785 });
786
787 let patterns = configReplacePatterns({
788 addons: this.project.addons,
789 autoRun: this.autoRun,
790 storeConfigInMeta: this.storeConfigInMeta,
791 });
792
793 let configPath = path.join(this.name, 'config', 'environments', 'test.json');
794
795 return new ConfigReplace(index, this.packageConfig(), {
796 configPath,
797 files: ['tests/index.html'],
798 env: 'test',
799 patterns,
800 });
801 }
802
803 /*
804 * Wraps application configuration into AMD module:

Callers 1

packageTestsMethod · 0.95

Calls 2

packageConfigMethod · 0.95
configReplacePatternsFunction · 0.85

Tested by

no test coverage detected