@cucumber/pretty-formatter
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -1,3 +0,2 @@ | ||
import { SummaryFormatter } from '@cucumber/cucumber'; | ||
import { IFormatterOptions } from '@cucumber/cucumber/lib/formatter'; | ||
import { SummaryFormatter, IFormatterOptions } from '@cucumber/cucumber'; | ||
export default class PrettyFormatter extends SummaryFormatter { | ||
@@ -4,0 +3,0 @@ private uri?; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cucumber_1 = require("@cucumber/cucumber"); | ||
const helpers_1 = require("@cucumber/cucumber/lib/formatter/helpers"); | ||
const gherkin_document_parser_1 = require("@cucumber/cucumber/lib/formatter/helpers/gherkin_document_parser"); | ||
const pickle_parser_1 = require("@cucumber/cucumber/lib/formatter/helpers/pickle_parser"); | ||
const CliTable3 = require("cli-table3"); | ||
@@ -12,2 +9,5 @@ const figures_1 = require("figures"); | ||
const theme_1 = require("./theme"); | ||
const { formatLocation, GherkinDocumentParser, PickleParser } = cucumber_1.formatterHelpers; | ||
const { getGherkinExampleRuleMap, getGherkinScenarioMap, getGherkinStepMap, } = GherkinDocumentParser; | ||
const { getPickleStepMap } = PickleParser; | ||
const marks = { | ||
@@ -121,3 +121,3 @@ [cucumber_1.Status.AMBIGUOUS]: figures_1.cross, | ||
} | ||
const gherkinExampleRuleMap = gherkin_document_parser_1.getGherkinExampleRuleMap(gherkinDocument); | ||
const gherkinExampleRuleMap = getGherkinExampleRuleMap(gherkinDocument); | ||
if (!pickle.astNodeIds) | ||
@@ -136,4 +136,4 @@ throw new Error('Pickle AST nodes missing'); | ||
const { gherkinDocument, pickle, testCase, } = this.eventDataCollector.getTestCaseAttempt(testStepStarted.testCaseStartedId || ''); | ||
const pickleStepMap = pickle_parser_1.getPickleStepMap(pickle); | ||
const gherkinStepMap = gherkin_document_parser_1.getGherkinStepMap(gherkinDocument); | ||
const pickleStepMap = getPickleStepMap(pickle); | ||
const gherkinStepMap = getGherkinStepMap(gherkinDocument); | ||
const testStep = (testCase.testSteps || []).find((item) => item.id === testStepStarted.testStepId); | ||
@@ -218,3 +218,3 @@ if (testStep && testStep.pickleStepId) { | ||
this.renderTags(2, pickle.tags || []); | ||
const gherkinScenarioMap = gherkin_document_parser_1.getGherkinScenarioMap(gherkinDocument); | ||
const gherkinScenarioMap = getGherkinScenarioMap(gherkinDocument); | ||
if (!pickle.astNodeIds) | ||
@@ -233,3 +233,3 @@ throw new Error('Pickle AST nodes missing'); | ||
renderLocation(line) { | ||
this.logItem(theme_1.ThemeItem.Location, '# ', helpers_1.formatLocation({ uri: this.uri || '', line }, process.cwd())); | ||
this.logItem(theme_1.ThemeItem.Location, '# ', formatLocation({ uri: this.uri || '', line }, process.cwd())); | ||
} | ||
@@ -236,0 +236,0 @@ newline() { |
{ | ||
"name": "@cucumber/pretty-formatter", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Official Cucumber.js Pretty Formatter", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/jbpros/cucumber-pretty-formatter", |
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
39311
378