@cucumber/messages
Advanced tools
Comparing version 18.0.0 to 19.0.0
@@ -112,2 +112,3 @@ import 'reflect-metadata'; | ||
keyword: string; | ||
keywordType?: StepKeywordType; | ||
text: string; | ||
@@ -194,2 +195,3 @@ docString?: DocString; | ||
id: string; | ||
type?: PickleStepType; | ||
text: string; | ||
@@ -315,2 +317,8 @@ } | ||
} | ||
export declare enum PickleStepType { | ||
UNKNOWN = "Unknown", | ||
CONTEXT = "Context", | ||
ACTION = "Action", | ||
OUTCOME = "Outcome" | ||
} | ||
export declare enum SourceMediaType { | ||
@@ -324,2 +332,9 @@ TEXT_X_CUCUMBER_GHERKIN_PLAIN = "text/x.cucumber.gherkin+plain", | ||
} | ||
export declare enum StepKeywordType { | ||
UNKNOWN = "Unknown", | ||
CONTEXT = "Context", | ||
ACTION = "Action", | ||
OUTCOME = "Outcome", | ||
CONJUNCTION = "Conjunction" | ||
} | ||
export declare enum TestStepResultStatus { | ||
@@ -326,0 +341,0 @@ UNKNOWN = "UNKNOWN", |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.TestStepFinished = exports.TestRunStarted = exports.TestRunFinished = exports.TestCaseStarted = exports.TestCaseFinished = exports.TestStep = exports.StepMatchArgumentsList = exports.StepMatchArgument = exports.Group = exports.TestCase = exports.StepDefinitionPattern = exports.StepDefinition = exports.JavaStackTraceElement = exports.JavaMethod = exports.SourceReference = exports.Source = exports.PickleTag = exports.PickleTableRow = exports.PickleTableCell = exports.PickleTable = exports.PickleStepArgument = exports.PickleStep = exports.PickleDocString = exports.Pickle = exports.ParseError = exports.ParameterType = exports.Product = exports.Git = exports.Ci = exports.Meta = exports.Location = exports.Hook = exports.Tag = exports.TableRow = exports.TableCell = exports.Step = exports.Scenario = exports.RuleChild = exports.Rule = exports.FeatureChild = exports.Feature = exports.Examples = exports.DocString = exports.DataTable = exports.Comment = exports.Background = exports.GherkinDocument = exports.Envelope = exports.Duration = exports.Attachment = void 0; | ||
exports.TestStepResultStatus = exports.StepDefinitionPatternType = exports.SourceMediaType = exports.AttachmentContentEncoding = exports.UndefinedParameterType = exports.Timestamp = exports.TestStepStarted = exports.TestStepResult = void 0; | ||
exports.TestStepResultStatus = exports.StepKeywordType = exports.StepDefinitionPatternType = exports.SourceMediaType = exports.PickleStepType = exports.AttachmentContentEncoding = exports.UndefinedParameterType = exports.Timestamp = exports.TestStepStarted = exports.TestStepResult = void 0; | ||
var class_transformer_1 = require("class-transformer"); | ||
@@ -737,2 +737,9 @@ require("reflect-metadata"); | ||
})(AttachmentContentEncoding = exports.AttachmentContentEncoding || (exports.AttachmentContentEncoding = {})); | ||
var PickleStepType; | ||
(function (PickleStepType) { | ||
PickleStepType["UNKNOWN"] = "Unknown"; | ||
PickleStepType["CONTEXT"] = "Context"; | ||
PickleStepType["ACTION"] = "Action"; | ||
PickleStepType["OUTCOME"] = "Outcome"; | ||
})(PickleStepType = exports.PickleStepType || (exports.PickleStepType = {})); | ||
var SourceMediaType; | ||
@@ -748,2 +755,10 @@ (function (SourceMediaType) { | ||
})(StepDefinitionPatternType = exports.StepDefinitionPatternType || (exports.StepDefinitionPatternType = {})); | ||
var StepKeywordType; | ||
(function (StepKeywordType) { | ||
StepKeywordType["UNKNOWN"] = "Unknown"; | ||
StepKeywordType["CONTEXT"] = "Context"; | ||
StepKeywordType["ACTION"] = "Action"; | ||
StepKeywordType["OUTCOME"] = "Outcome"; | ||
StepKeywordType["CONJUNCTION"] = "Conjunction"; | ||
})(StepKeywordType = exports.StepKeywordType || (exports.StepKeywordType = {})); | ||
var TestStepResultStatus; | ||
@@ -750,0 +765,0 @@ (function (TestStepResultStatus) { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "18.0.0"; | ||
export declare const version = "19.0.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// This file is generated using `make src/version.ts` or `make .codegen` | ||
exports.version = '18.0.0'; | ||
exports.version = '19.0.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -25,2 +25,3 @@ "use strict"; | ||
keyword: 'Given ', | ||
keywordType: index_js_1.StepKeywordType.CONTEXT, | ||
location: { column: 5, line: 4 }, | ||
@@ -68,2 +69,3 @@ text: 'the minimalism', | ||
keyword: 'Given ', | ||
keywordType: index_js_1.StepKeywordType.CONTEXT, | ||
location: { column: 5, line: 4 }, | ||
@@ -70,0 +72,0 @@ text: 'the minimalism', |
@@ -112,2 +112,3 @@ import 'reflect-metadata'; | ||
keyword: string; | ||
keywordType?: StepKeywordType; | ||
text: string; | ||
@@ -194,2 +195,3 @@ docString?: DocString; | ||
id: string; | ||
type?: PickleStepType; | ||
text: string; | ||
@@ -315,2 +317,8 @@ } | ||
} | ||
export declare enum PickleStepType { | ||
UNKNOWN = "Unknown", | ||
CONTEXT = "Context", | ||
ACTION = "Action", | ||
OUTCOME = "Outcome" | ||
} | ||
export declare enum SourceMediaType { | ||
@@ -324,2 +332,9 @@ TEXT_X_CUCUMBER_GHERKIN_PLAIN = "text/x.cucumber.gherkin+plain", | ||
} | ||
export declare enum StepKeywordType { | ||
UNKNOWN = "Unknown", | ||
CONTEXT = "Context", | ||
ACTION = "Action", | ||
OUTCOME = "Outcome", | ||
CONJUNCTION = "Conjunction" | ||
} | ||
export declare enum TestStepResultStatus { | ||
@@ -326,0 +341,0 @@ UNKNOWN = "UNKNOWN", |
@@ -614,2 +614,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
})(AttachmentContentEncoding || (AttachmentContentEncoding = {})); | ||
export var PickleStepType; | ||
(function (PickleStepType) { | ||
PickleStepType["UNKNOWN"] = "Unknown"; | ||
PickleStepType["CONTEXT"] = "Context"; | ||
PickleStepType["ACTION"] = "Action"; | ||
PickleStepType["OUTCOME"] = "Outcome"; | ||
})(PickleStepType || (PickleStepType = {})); | ||
export var SourceMediaType; | ||
@@ -625,2 +632,10 @@ (function (SourceMediaType) { | ||
})(StepDefinitionPatternType || (StepDefinitionPatternType = {})); | ||
export var StepKeywordType; | ||
(function (StepKeywordType) { | ||
StepKeywordType["UNKNOWN"] = "Unknown"; | ||
StepKeywordType["CONTEXT"] = "Context"; | ||
StepKeywordType["ACTION"] = "Action"; | ||
StepKeywordType["OUTCOME"] = "Outcome"; | ||
StepKeywordType["CONJUNCTION"] = "Conjunction"; | ||
})(StepKeywordType || (StepKeywordType = {})); | ||
export var TestStepResultStatus; | ||
@@ -627,0 +642,0 @@ (function (TestStepResultStatus) { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "18.0.0"; | ||
export declare const version = "19.0.0"; | ||
//# sourceMappingURL=version.d.ts.map |
// This file is generated using `make src/version.ts` or `make .codegen` | ||
export const version = '18.0.0'; | ||
export const version = '19.0.0'; | ||
//# sourceMappingURL=version.js.map |
import assert from 'assert'; | ||
import { parseEnvelope } from '../src/index.js'; | ||
import { parseEnvelope, StepKeywordType } from '../src/index.js'; | ||
describe('messages', () => { | ||
@@ -20,2 +20,3 @@ it('defaults missing fields when deserialising from JSON', () => { | ||
keyword: 'Given ', | ||
keywordType: StepKeywordType.CONTEXT, | ||
location: { column: 5, line: 4 }, | ||
@@ -63,2 +64,3 @@ text: 'the minimalism', | ||
keyword: 'Given ', | ||
keywordType: StepKeywordType.CONTEXT, | ||
location: { column: 5, line: 4 }, | ||
@@ -65,0 +67,0 @@ text: 'the minimalism', |
{ | ||
"name": "@cucumber/messages", | ||
"version": "18.0.0", | ||
"version": "19.0.0", | ||
"description": "JSON schema-based messages for Cucumber's inter-process communication", | ||
@@ -42,8 +42,8 @@ "type": "module", | ||
"devDependencies": { | ||
"@types/mocha": "9.1.0", | ||
"@types/node": "16.11.26", | ||
"@types/mocha": "9.1.1", | ||
"@types/node": "16.11.36", | ||
"copyfiles": "2.4.1", | ||
"mocha": "9.2.2", | ||
"ts-node": "10.7.0", | ||
"typescript": "4.6.2" | ||
"mocha": "10.0.0", | ||
"ts-node": "10.8.0", | ||
"typescript": "4.7.2" | ||
}, | ||
@@ -50,0 +50,0 @@ "bugs": { |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
214110
2751
0