mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 14:20:38 +08:00
21 lines
512 B
Text
21 lines
512 B
Text
|
import { remote } from 'electron';
|
||
|
import {TerminalReporter} from 'jasmine-tagged';
|
||
|
|
||
|
export default class N1TerminalReporter extends TerminalReporter {
|
||
|
constructor(opts = {}) {
|
||
|
const options = Object.assign(opts, {
|
||
|
color: true,
|
||
|
print(str) {
|
||
|
return remote.process.stdout.write(str);
|
||
|
},
|
||
|
onComplete(runner) {
|
||
|
if (runner.results().failedCount > 0) {
|
||
|
return NylasEnv.exit(1);
|
||
|
}
|
||
|
return NylasEnv.exit(0);
|
||
|
},
|
||
|
});
|
||
|
super(options)
|
||
|
}
|
||
|
}
|