fix(core): update

This commit is contained in:
2023-11-09 21:06:06 +01:00
parent f1a0455662
commit 722d777f80
4 changed files with 15 additions and 8 deletions

View File

@@ -130,10 +130,11 @@ export class TsTest {
await server.start();
// lets handle realtime comms
const tapParser = new TapParser(fileNameArg + ':chrome');
const wss = new plugins.ws.WebSocketServer({ port: 8080 });
wss.on('connection', (ws) => {
ws.on('message', (message) => {
console.log(message.toString());
tapParser.handleTapLog(message.toString());
});
});
@@ -188,10 +189,8 @@ export class TsTest {
console.log(
`${cs('=> ', 'blue')} Stopped ${cs(fileNameArg, 'orange')} chromium instance and server.`
);
console.log(`${cs('=> ', 'blue')} See the result captured from the chromium execution:`);
// lets create the tap parser
const tapParser = new TapParser(fileNameArg + ':chrome');
tapParser.handleTapLog(evaluation);
await tapParser.evaluateFinalResult();
return tapParser;
}