UNPKG

codeceptjs-testit-reporter

Version:

Plugin for sending CodeceptJS test run reports to TestIT

35 lines (34 loc) 1.34 kB
"use strict"; var _a, _b; Object.defineProperty(exports, "__esModule", { value: true }); exports.FORCE_EXIT_SIGNALS = exports.PLUGIN_NAME = exports.CJS_NAMESPACE = exports.CJS_2_TESTIT_STEP_STATUS_MAP = exports.CJS_2_TESTIT_STATUS_MAP = exports.CJS_STEP_STATUS = exports.CJS_STATUS = exports.TESTIT_STATUS = void 0; exports.TESTIT_STATUS = { PASSED: 'Passed', FAILED: 'Failed', PENDING: 'Pending', BLOCKED: 'Blocked', SKIPPED: 'Skipped', }; exports.CJS_STATUS = { PASSED: 'passed', FAILED: 'failed', SKIPPED: 'skipped', FINISHED: 'finished', }; exports.CJS_STEP_STATUS = { SUCCESS: 'success', FAILED: 'failed', }; exports.CJS_2_TESTIT_STATUS_MAP = (_a = {}, _a[exports.CJS_STATUS.PASSED] = exports.TESTIT_STATUS.PASSED, _a[exports.CJS_STATUS.FAILED] = exports.TESTIT_STATUS.FAILED, _a[exports.CJS_STATUS.SKIPPED] = exports.TESTIT_STATUS.SKIPPED, _a); exports.CJS_2_TESTIT_STEP_STATUS_MAP = (_b = {}, _b[exports.CJS_STEP_STATUS.SUCCESS] = exports.TESTIT_STATUS.PASSED, _b[exports.CJS_STEP_STATUS.FAILED] = exports.TESTIT_STATUS.FAILED, _b); exports.CJS_NAMESPACE = "CodeceptJS"; exports.PLUGIN_NAME = "TestIT"; // https://nodejs.org/api/process.html#process_signal_events exports.FORCE_EXIT_SIGNALS = ['SIGHUP', 'SIGINT', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM'];