I'm reading this config from a config.js file and tried to parse. I have tried JsonSlurper with no luck. Can anyone let me know the feasible solution to get this string parsed in groovy
exports.config = {
tests: './test/lib/test*.js',
output: './output',
helpers: {
WebDriver: {
url: 'https://google.com/',
browser: 'chrome',
host: 'testhost.com',
port: 80,
},
},
plugins: {
wdio: {
enabled: false,
services: [ 'selenium-standalone' ],
},
},
include: {
I: './steps_file.js',
},
mocha: {},
name: 'testProject',
modules: './main/lib/',
pageobjects: './main/pageObjects/',
pages: './main/pages/',
testData: './test/resources/testData/',
};