What do I need to do to add wdio-lambda-service to enable tunnel in my WebdriverIO automation test?

What do I need to do to add wdio-lambda-service to enable tunnel in my WebdriverIO automation test?

Hey Junior

You need to install wdio-lambda-service in your project using below command:

npm i wdio-lambdatest-service --save-dev

Once you have done that, you can put the below object in wdio config file.

exports.config = {
    // ...
    user: process.env.LT_USERNAME,
    key: process.env.LT_ACCESS_KEY,
    logFile : './logDir/api.log',
    services: [
        ['lambdatest', {
            tunnel: true
        }]
    ],
    // ...
};