()
| 52 | } |
| 53 | |
| 54 | start() { |
| 55 | const child = execa('ts-node', ['./runner.ts'], { |
| 56 | cwd: path.resolve(__dirname, '../'), |
| 57 | }); |
| 58 | child.stdout.on('data', (data) => { |
| 59 | this.mainBox.insertBottom(String(data)); |
| 60 | this.screen.render(); |
| 61 | }); |
| 62 | child.stderr.on('data', (data) => { |
| 63 | this.mainBox.pushLine(String(data)); |
| 64 | this.screen.render(); |
| 65 | }); |
| 66 | |
| 67 | this.mainProcess = child; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | new TailchatServiceDashboard().start(); |
no test coverage detected