How to use the @wdio/spec-reporter.default function in @wdio/spec-reporter

To help you get started, we’ve selected a few @wdio/spec-reporter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github salesforce / lwc / packages / integration-tests / scripts / reporter.js View on Github external
/*
 * 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;

@wdio/spec-reporter

A WebdriverIO plugin to report in spec style

MIT
Latest version published 3 days ago

Package Health Score

98 / 100
Full package analysis

Popular @wdio/spec-reporter functions