@contract-case/case-plugin-base
Version:
Plugin framework for writing plugins for the ContractCase test framework
16 lines • 648 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.cantPublish = void 0;
/**
* True if this context can never publish results. This is useful for
* determining whether warning logs should be printed if the verification won't
* have any effect
*
* @public
* @param context - MatchContext
* @returns True if this context can never publish results; false if it might publish
*/
const cantPublish = (context) => context['_case:currentRun:context:publish'] === false ||
context['_case:currentRun:context:publish'] === 'NEVER';
exports.cantPublish = cantPublish;
//# sourceMappingURL=publish.accessors.js.map