|
|
|
@ -313,7 +313,7 @@ function testImportFromRemixd(browser: NightwatchBrowser, callback: VoidFunction |
|
|
|
|
|
|
|
|
|
async function spawnRemixd(path: string): Promise<ChildProcess> { |
|
|
|
|
const remixd = spawn('yarn run remixd', [`-s ${path}`], { cwd: process.cwd(), shell: true, detached: true }) |
|
|
|
|
return new Promise((resolve) => { |
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
remixd.stdout.on('data', function (data) { |
|
|
|
|
console.log('stdout: ' + data.toString()) |
|
|
|
|
if( |
|
|
|
@ -326,6 +326,7 @@ async function spawnRemixd(path: string): Promise<ChildProcess> { |
|
|
|
|
}) |
|
|
|
|
remixd.stderr.on('err', function (data) { |
|
|
|
|
console.log('err: ' + data.toString()) |
|
|
|
|
reject(data.toString()) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|