While running my Playwright tests in TypeScript, I've noticed that the logs are not showing up on the console.
Even though I have console.log
statements in my code that appear fine when debugging the tests in the "Debug Console" tab, they do not display when running the tests. The results are not showing up in the Output tab or the "Test Results" tab.
I tried following some suggestions from online posts, such as adding the following code to the launch.json
file:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/t.js",
"console": "externalTerminal"
}
]
}
I also tried changing the options in the Output tab drop-down menu, which initially had 'Tasks' selected by default.