UNPKG

orionsoft-react-scripts

Version:

Orionsoft Configuration and scripts for Create React App.

63 lines (47 loc) 1.03 kB
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * */ 'use strict'; const preRunMessage = require('../preRunMessage'); class BaseReporter { log(message) { process.stderr.write(message + '\n'); } onRunStart( config, results, runnerContext, options) { preRunMessage.remove(process.stderr); } onTestResult( config, testResult, results) {} onTestStart( config, path, runnerContext) {} onRunComplete( config, aggregatedResults, runnerContext) {} _setError(error) { this._error = error; } // Return an error that occured during reporting. This error will // define whether the test run was successful or failed. getLastError() { return this._error; }} module.exports = BaseReporter;