how to integrate lighthouse with testcafe?
问题 I need to pass the connection argument while calling lighthouse https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/index.js#L41 async function lighthouse(url, flags = {}, configJSON, connection) { // verify the url is valid and that protocol is allowed if (url && (!URL.isValid(url) || !URL.isProtocolAllowed(url))) { throw new LHError(LHError.errors.INVALID_URL); } // set logging preferences, assume quiet flags.logLevel = flags.logLevel || 'error'; log.setLevel(flags