UNPKG

gatsby-cli

Version:

Gatsby command-line interface for creating new sites and running Gatsby commands

30 lines (29 loc) 577 B
"use strict"; exports.__esModule = true; exports.createPhantomReporter = void 0; var _constants = require("./constants"); const createPhantomReporter = ({ text, id, span, reporterActions }) => { return { start() { reporterActions.startActivity({ id, text, type: _constants.ActivityTypes.Hidden }); }, end() { span.finish(); reporterActions.endActivity({ id, status: _constants.ActivityStatuses.Success }); }, span }; }; exports.createPhantomReporter = createPhantomReporter;