Hi I've been learning Playwright and been executing scripts using the command line and "node filename.js" to execute the tests manually. I have since been looking into using the test runner and executing tests using "npx folio" or "npx filename.spec.ts" having appropriately edited the scripts, they execute but seems to fail very early on in the script where they had previously worked fine.
Is there something else other than changing the declaration at the top of script, or do I also need to change syntax in the body of the script for proper execution in typescript.
Below is all I have changed between the two scripts.