-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path@xstate+machine-extractor+0.7.1.patch
62 lines (54 loc) · 3.08 KB
/
@xstate+machine-extractor+0.7.1.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff --git a/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.dev.js b/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.dev.js
index 328a049..7014100 100644
--- a/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.dev.js
+++ b/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.dev.js
@@ -1035,7 +1035,10 @@ const Invoke = maybeArrayOf(InvokeConfigObject);
const MetaDescription = unionType([StringLiteral, TemplateLiteral]);
const StateMeta = objectTypeWithKnownKeys({
- description: MetaDescription
+ description: MetaDescription,
+ gherkinFeature: MetaDescription,
+ gherkinAssert: MetaDescription,
+ gherkinScenario: MetaDescription,
});
const Schema = objectTypeWithKnownKeys({
@@ -1214,9 +1217,12 @@ const parseStateNode = (astResult, opts) => {
config.always = getTransitions(astResult.always, opts);
}
- if ((_astResult$meta = astResult.meta) !== null && _astResult$meta !== void 0 && _astResult$meta.description) {
+ if ((_astResult$meta = astResult.meta) !== null && _astResult$meta !== void 0) {
config.meta = {
- description: astResult.meta.description.value
+ description: astResult.meta.description && astResult.meta.description.value,
+ gherkinAssert: astResult.meta.gherkinAssert && astResult.meta.gherkinAssert.value,
+ gherkinScenario: astResult.meta.gherkinScenario && astResult.meta.gherkinScenario.value,
+ gherkinFeature: astResult.meta.gherkinFeature && astResult.meta.gherkinFeature.value
};
}
diff --git a/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.prod.js b/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.prod.js
index 328a049..7014100 100644
--- a/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.prod.js
+++ b/node_modules/@xstate/machine-extractor/dist/xstate-machine-extractor.cjs.prod.js
@@ -1035,7 +1035,10 @@ const Invoke = maybeArrayOf(InvokeConfigObject);
const MetaDescription = unionType([StringLiteral, TemplateLiteral]);
const StateMeta = objectTypeWithKnownKeys({
- description: MetaDescription
+ description: MetaDescription,
+ gherkinFeature: MetaDescription,
+ gherkinAssert: MetaDescription,
+ gherkinScenario: MetaDescription,
});
const Schema = objectTypeWithKnownKeys({
@@ -1214,9 +1217,12 @@ const parseStateNode = (astResult, opts) => {
config.always = getTransitions(astResult.always, opts);
}
- if ((_astResult$meta = astResult.meta) !== null && _astResult$meta !== void 0 && _astResult$meta.description) {
+ if ((_astResult$meta = astResult.meta) !== null && _astResult$meta !== void 0) {
config.meta = {
- description: astResult.meta.description.value
+ description: astResult.meta.description && astResult.meta.description.value,
+ gherkinAssert: astResult.meta.gherkinAssert && astResult.meta.gherkinAssert.value,
+ gherkinScenario: astResult.meta.gherkinScenario && astResult.meta.gherkinScenario.value,
+ gherkinFeature: astResult.meta.gherkinFeature && astResult.meta.gherkinFeature.value
};
}