Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const SpecReporter = require('@wdio/spec-reporter').default;
function decorateCompatPreface(reporter, preface) {
const modePreface = ` [${reporter.options.mode}]`;
return preface + modePreface;
}
class LWCIntegrationReporter extends SpecReporter {
getResultList(cid, suites, preface = '') {
return super.getResultList.call(this, cid, suites, decorateCompatPreface(this, preface));
}
}
LWCIntegrationReporter.reporterName = 'LWCIntegrationReporter';
module.exports = LWCIntegrationReporter;