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

Function onOutput

tests/acceptance/smoke-test-slow.js:273–284  ·  view source on GitHub ↗
(string, child)

Source from the content-addressed store, hash-verified

271 try {
272 await runCommand(path.join('.', 'node_modules', 'ember-cli', 'bin', 'ember'), 'build', '--watch', {
273 onOutput(string, child) {
274 if (touched) {
275 if (string.match(/Build successful/)) {
276 expect(checker.contains('js', text)).to.be;
277 killCliProcess(child);
278 }
279 } else if (string.match(/Build successful/)) {
280 // first build
281 touched = true;
282 fs.appendFileSync(appJsPath, line);
283 }
284 },
285 });
286 } catch (error) {
287 // swallowing because of SIGINT

Callers

nothing calls this directly

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…