When I run playwright tests, written in Typescript the logs are not output on the console. I have console.log statments which do output fine when I debug the tests and are shown under “Debug Console” tab. However, when I run the tests, they dont show the results in Output tab or under “Test Results” tab.
I went through a few posts and tried adding this under launch.JSON file, after creating launch.JSON file which wasnt there earlier but this didnt help:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/t.js",
"console": "externalTerminal"
}
]
}
I’ve also tried choosing different options under Output tab drop-down which by default had ‘Tasks’ set