test: add more logging for a few tests. (#27956)
* test: add logging for app.relaunch test * test: compare more fields in extension test
This commit is contained in:
parent
d1145a0f2b
commit
ed8e57e424
2 changed files with 12 additions and 5 deletions
|
@ -286,13 +286,20 @@ describe('app module', () => {
|
|||
} else if (String(data) === 'true' && state === 'first-launch') {
|
||||
done();
|
||||
} else {
|
||||
done(`Unexpected state: ${state}`);
|
||||
done(`Unexpected state: "${state}", data: "${data}"`);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const appPath = path.join(fixturesPath, 'api', 'relaunch');
|
||||
cp.spawn(process.execPath, [appPath]);
|
||||
const child = cp.spawn(process.execPath, [appPath]);
|
||||
child.stdout.on('data', (c) => console.log(c.toString()));
|
||||
child.stderr.on('data', (c) => console.log(c.toString()));
|
||||
child.on('exit', (code) => {
|
||||
if (code !== 0) {
|
||||
done(`Process exited with code ${code}`);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue