Comparing version 0.55555555.0-555555 to 0.55555555.0
@@ -31,2 +31,3 @@ "use strict"; | ||
const currentActionContext_1 = __importDefault(require("./currentActionContext")); | ||
const PendingError_1 = require("./PendingError"); | ||
function main(args) { | ||
@@ -272,3 +273,3 @@ const testModulePath = require('fs').realpathSync(args._[0]); | ||
if (errors.length) { | ||
if (errors.every(e => e.__prescriptPending)) { | ||
if (errors.every(e => PendingError_1.isPendingError(e))) { | ||
console.log(chalk_1.default.bold.yellow('Test pending'), formattedTimeTaken); | ||
@@ -340,3 +341,3 @@ process.exitCode = 2; | ||
step.actionDefinition; | ||
if (e.__prescriptPending) { | ||
if (PendingError_1.isPendingError(e)) { | ||
console.log('\b\b\b', chalk_1.default.bold.cyan('PENDING'), formatTimeTaken()); | ||
@@ -343,0 +344,0 @@ console.log(chalk_1.default.cyan(indent_string_1.default('Aborting test because it is pending.\n' + definition, indent))); |
@@ -12,2 +12,3 @@ "use strict"; | ||
const writers_1 = require("allure-js-commons/dist/src/writers"); | ||
const PendingError_1 = require("./PendingError"); | ||
class CompositeTestReporter { | ||
@@ -107,3 +108,3 @@ constructor(reporters) { | ||
} | ||
if (outcome.__prescriptPending) { | ||
if (PendingError_1.isPendingError(outcome)) { | ||
executableItem.stage = allure_js_commons_1.Stage.FINISHED; | ||
@@ -110,0 +111,0 @@ executableItem.status = allure_js_commons_1.Status.SKIPPED; |
@@ -224,4 +224,3 @@ "use strict"; | ||
pending() { | ||
const error = new Error('[pending]'); | ||
error.__prescriptPending = true; | ||
const error = new PendingError_1.PendingError(); | ||
const definition = getSource(error_stack_parser_1.default.parse(new Error(`Pending`))); | ||
@@ -228,0 +227,0 @@ return appendStep({ name: StepName.coerce('Pending'), definition, pending: true }, () => { |
{ | ||
"name": "prescript", | ||
"version": "0.55555555.0-555555", | ||
"version": "0.55555555.0", | ||
"description": "Object-oriented acceptance test tool", | ||
@@ -5,0 +5,0 @@ "main": "./lib/singletonApi.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157859
2453