MCPcopy Index your code
hub / github.com/angular-fullstack/generator-angular-fullstack / runCmd

Function runCmd

src/test/test-helpers.js:34–46  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

32 * @returns {Promise}
33 */
34export function runCmd(cmd) {
35 return new Promise((resolve, reject) => {
36 exec(cmd, {maxBuffer: 1024 * 500}, function(err, stdout, stderr) {
37 if(err) {
38 console.error(stdout);
39 return reject(err);
40 } else {
41 if(DEBUG) console.log(`${cmd} stdout: ${stdout}`);
42 return resolve();
43 }
44 });
45 });
46}
47
48/**
49 * Assert that only the expected files are present

Callers 2

main.test.jsFile · 0.90
eslintFilesFunction · 0.90

Calls

no outgoing calls

Tested by 1

eslintFilesFunction · 0.72