0

I have a sample project with my test cases written in protractor in ts. I could not able to debug the ts.

package.json

 "debug": "node --inspect=1337 --debug-brk --nolazy node_modules/cucumber/bin/cucumber-js --tags @debug --format json:./reports/report.json"

launch.json

{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
    {
        "type": "node",
        "request": "launch",
        "name": "Debug",
        "runtimeExecutable": "npm.cmd",
        "cwd": "${workspaceRoot}",
        "env":{
           "NODE_PATH": "${workspaceRoot}/node_modules"
        },
        "runtimeArgs": [
            "run-script", "debug"
        ],
        "port": 1337
    }
]

}

and I'm getting the following error

Then I see xxxx
   Undefined. Implement with the following snippet:

     Then('I see xxxxxxx', function () {
       // Write code here that turns the phrase above into concrete actions
       return 'pending';
     });

Note: I have protractor steps in place and it works fine on executing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.