MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / _generateCustomConfigs

Function _generateCustomConfigs

lib/commands/test.js:103–125  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

101 },
102
103 _generateCustomConfigs(options) {
104 let config = {};
105 if (!options.filter && !options.module && !options.launch && !options.query && !options['test-page']) {
106 return config;
107 }
108
109 let testPage = options['test-page'];
110 let queryString = this.buildTestPageQueryString(options);
111 if (testPage) {
112 let containsQueryString = testPage.indexOf('?') > -1;
113 let testPageJoinChar = containsQueryString ? '&' : '?';
114 config.testPage = testPage + testPageJoinChar + queryString;
115 }
116 if (queryString) {
117 config.queryString = queryString;
118 }
119
120 if (options.launch) {
121 config.launch = options.launch;
122 }
123
124 return config;
125 },
126
127 async _generateTestPortNumber(options, ui) {
128 if (options.testPort === defaultPort && !options.port) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…