printing stderr

This commit is contained in:
antelle 2021-04-10 18:42:12 +02:00
parent 25bec513f3
commit 077f72a0c5
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ describe('KeeWeb extension native module host', function () {
it('exits on host exit', (done) => {
startServer();
const process = childProcess.spawn(hostPath, [extensionOrigin]);
process.stderr.on('data', (data) => console.error(data.toString()));
process.on('exit', (code) => {
expect(code).to.eql(0);
done();
@ -59,6 +60,7 @@ describe('KeeWeb extension native module host', function () {
it('sends messages between stdio and socket', (done) => {
startServer();
const process = childProcess.spawn(hostPath, [extensionOrigin]);
process.stderr.on('data', (data) => console.error(data.toString()));
process.on('exit', (code) => {
expect(code).to.eql(0);
done();