@cucumber/query 5.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json CHANGED
@@ -23,8 +23,10 @@
23
23
  "rules": {
24
24
  "node/no-extraneous-import": "error",
25
25
  "@typescript-eslint/ban-ts-ignore": "off",
26
- "@typescript-eslint/no-use-before-define": "off",
26
+ "@typescript-eslint/ban-ts-comment": "off",
27
+ "@typescript-eslint/explicit-module-boundary-types": "off",
27
28
  "@typescript-eslint/explicit-function-return-type": "off",
29
+ "@typescript-eslint/no-use-before-define": "off",
28
30
  "@typescript-eslint/interface-name-prefix": "off",
29
31
  "@typescript-eslint/member-delimiter-style": "off",
30
32
  "@typescript-eslint/no-explicit-any": "off",
package/.idea/aws.xml ADDED
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="accountSettings">
4
+ <option name="activeRegion" value="eu-west-3" />
5
+ <option name="recentlyUsedRegions">
6
+ <list>
7
+ <option value="eu-west-3" />
8
+ </list>
9
+ </option>
10
+ </component>
11
+ </project>
@@ -1,11 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <module type="JAVA_MODULE" version="4">
3
- <component name="Go" enabled="true" />
4
3
  <component name="NewModuleRootManager" inherit-compiler-output="true">
5
4
  <exclude-output />
6
- <content url="file://$MODULE_DIR$">
7
- <sourceFolder url="file://$MODULE_DIR$/dist" isTestSource="false" generated="true" />
8
- </content>
5
+ <content url="file://$MODULE_DIR$" />
9
6
  <orderEntry type="inheritedJdk" />
10
7
  <orderEntry type="sourceFolder" forTests="false" />
11
8
  </component>
package/.idea/misc.xml CHANGED
@@ -3,4 +3,7 @@
3
3
  <component name="JavaScriptSettings">
4
4
  <option name="languageLevel" value="ES6" />
5
5
  </component>
6
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
7
+ <output url="file://$PROJECT_DIR$/out" />
8
+ </component>
6
9
  </project>
@@ -1,119 +1,46 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="8d4c810c-564f-4e04-a9c3-35c50ad472e2" name="Default Changelist" comment="">
5
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/attachments/attachments.ndjson" beforeDir="false" />
6
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/data-tables/data-tables.ndjson" beforeDir="false" />
7
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/examples-tables/examples-tables.ndjson" beforeDir="false" />
8
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/hooks/hooks.ndjson" beforeDir="false" />
9
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/minimal/minimal.ndjson" beforeDir="false" />
10
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/parameter-types/parameter-types.ndjson" beforeDir="false" />
11
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/rules/rules.ndjson" beforeDir="false" />
12
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/stack-traces/stack-traces.ndjson" beforeDir="false" />
13
- <change beforePath="$PROJECT_DIR$/../../compatibility-kit/javascript/features/unknown-parameter-type/unknown-parameter-type.ndjson" beforeDir="false" />
14
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/Argument.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/Argument.ts" afterDir="false" />
15
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/CucumberExpression.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/CucumberExpression.ts" afterDir="false" />
16
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/CucumberExpressionGenerator.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/CucumberExpressionGenerator.ts" afterDir="false" />
17
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/Errors.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/Errors.ts" afterDir="false" />
18
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/GeneratedExpression.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/GeneratedExpression.ts" afterDir="false" />
19
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/Group.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/Group.ts" afterDir="false" />
20
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/GroupBuilder.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/GroupBuilder.ts" afterDir="false" />
21
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/ParameterType.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/ParameterType.ts" afterDir="false" />
22
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/ParameterTypeRegistry.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/ParameterTypeRegistry.ts" afterDir="false" />
23
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/RegularExpression.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/src/RegularExpression.ts" afterDir="false" />
24
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CombinatorialGeneratedExpressionFactoryTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CombinatorialGeneratedExpressionFactoryTest.ts" afterDir="false" />
25
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CucumberExpressionGeneratorTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CucumberExpressionGeneratorTest.ts" afterDir="false" />
26
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CucumberExpressionTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CucumberExpressionTest.ts" afterDir="false" />
27
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CustomParameterTypeTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/CustomParameterTypeTest.ts" afterDir="false" />
28
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/ExpressionExamplesTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/ExpressionExamplesTest.ts" afterDir="false" />
29
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/ParameterTypeRegistryTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/ParameterTypeRegistryTest.ts" afterDir="false" />
30
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/ParameterTypeTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/ParameterTypeTest.ts" afterDir="false" />
31
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/RegularExpressionTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/RegularExpressionTest.ts" afterDir="false" />
32
- <change beforePath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/TreeRegexpTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../cucumber-expressions/javascript/test/TreeRegexpTest.ts" afterDir="false" />
33
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/DataTable.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/DataTable.ts" afterDir="false" />
34
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/ErrorMessageGenerator.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/ErrorMessageGenerator.ts" afterDir="false" />
35
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/Hook.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/Hook.ts" afterDir="false" />
36
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/PickleTestStep.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/PickleTestStep.ts" afterDir="false" />
37
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/SupportCodeExecutor.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/SupportCodeExecutor.ts" afterDir="false" />
38
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/TestCase.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/TestCase.ts" afterDir="false" />
39
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/cli.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/cli.ts" afterDir="false" />
40
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/makePickleTestStep.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/makePickleTestStep.ts" afterDir="false" />
41
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/makeTestCase.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/makeTestCase.ts" afterDir="false" />
42
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/makeTestPlan.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/makeTestPlan.ts" afterDir="false" />
43
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/runCucumber.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/src/runCucumber.ts" afterDir="false" />
44
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestCaseTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestCaseTest.ts" afterDir="false" />
45
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestHelpers.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestHelpers.ts" afterDir="false" />
46
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestPlanTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestPlanTest.ts" afterDir="false" />
47
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestStepTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/TestStepTest.ts" afterDir="false" />
48
- <change beforePath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/makeTestCaseTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../fake-cucumber/javascript/test/makeTestCaseTest.ts" afterDir="false" />
49
- <change beforePath="$PROJECT_DIR$/../../gherkin/CHANGELOG.md" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/CHANGELOG.md" afterDir="false" />
50
- <change beforePath="$PROJECT_DIR$/../../gherkin/javascript/src/AstBuilder.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/javascript/src/AstBuilder.ts" afterDir="false" />
51
- <change beforePath="$PROJECT_DIR$/../../gherkin/javascript/src/Dialect.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/javascript/src/Dialect.ts" afterDir="false" />
52
- <change beforePath="$PROJECT_DIR$/../../gherkin/javascript/src/Gherkin.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/javascript/src/stream/GherkinStreams.ts" afterDir="false" />
53
- <change beforePath="$PROJECT_DIR$/../../gherkin/javascript/src/cli/main.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/javascript/src/cli/main.ts" afterDir="false" />
54
- <change beforePath="$PROJECT_DIR$/../../gherkin/javascript/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/javascript/src/index.ts" afterDir="false" />
55
- <change beforePath="$PROJECT_DIR$/../../gherkin/javascript/test/QueryTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/javascript/test/QueryTest.ts" afterDir="false" />
56
- <change beforePath="$PROJECT_DIR$/../../gherkin/javascript/test/StreamTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin/javascript/test/StreamTest.ts" afterDir="false" />
57
- <change beforePath="$PROJECT_DIR$/test/QueryTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/test/QueryTest.ts" afterDir="false" />
58
- <change beforePath="$PROJECT_DIR$/../../tag-expressions/javascript/src/tag_expression_parser.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../tag-expressions/javascript/src/tag_expression_parser.ts" afterDir="false" />
59
- <change beforePath="$PROJECT_DIR$/../../tag-expressions/javascript/test/tag_expression_parser_test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../tag-expressions/javascript/test/tag_expression_parser_test.ts" afterDir="false" />
4
+ <list default="true" id="3a6a5299-596c-4391-a295-0b9dcc74ca37" name="Default Changelist" comment="">
5
+ <change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/package.json" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/GherkinDocumentWalker.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/GherkinDocumentWalker.ts" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/Query.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/Query.ts" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/pretty.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/pretty.ts" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/QueryTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/QueryTest.ts" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/parse.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/parse.ts" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/../../messages-light/javascript/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/Makefile" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/../../messages-light/javascript/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/package.json" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/../../messages-light/javascript/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/src/index.ts" afterDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/../../messages-light/javascript/src/messagesLightReviver.ts" beforeDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/../../messages-light/javascript/test/MessagesLightTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/test/MessagesLightTest.ts" afterDir="false" />
60
16
  </list>
61
17
  <option name="SHOW_DIALOG" value="false" />
62
18
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
63
19
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
64
20
  <option name="LAST_RESOLUTION" value="IGNORE" />
65
21
  </component>
66
- <component name="FileTemplateManagerImpl">
67
- <option name="RECENT_TEMPLATES">
68
- <list>
69
- <option value="TypeScript File" />
70
- </list>
71
- </option>
72
- </component>
73
- <component name="GOROOT" path="/usr/local/Cellar/go/1.13.4/libexec" />
74
22
  <component name="Git.Settings">
75
23
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
76
24
  </component>
77
- <component name="MacroExpansionManager">
78
- <option name="directoryName" value="vKbNGetv" />
79
- </component>
80
- <component name="PackageJsonUpdateNotifier">
81
- <dismissed value="$PROJECT_DIR$/package.json" />
82
- </component>
83
- <component name="ProjectId" id="1WQivHO2n0M8qgm0vaeZNuY9Kst" />
25
+ <component name="ProjectId" id="1fS5jw4CzXVUQTFvRL23MSqaoCO" />
84
26
  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
85
27
  <component name="ProjectViewState">
86
28
  <option name="hideEmptyMiddlePackages" value="true" />
87
- <option name="showExcludedFiles" value="true" />
88
29
  <option name="showLibraryContents" value="true" />
89
30
  </component>
90
31
  <component name="PropertiesComponent">
32
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
91
33
  <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
92
34
  <property name="WebServerToolWindowFactoryState" value="false" />
93
- <property name="aspect.path.notification.shown" value="true" />
94
35
  <property name="go.import.settings.migrated" value="true" />
95
- <property name="go.sdk.automatically.set" value="true" />
96
- <property name="go.tried.to.enable.integration.vgo.integrator" value="true" />
97
- <property name="js.last.introduce.type" value="CONST" />
98
36
  <property name="last_opened_file_path" value="$PROJECT_DIR$" />
99
37
  <property name="node.js.detected.package.eslint" value="true" />
100
38
  <property name="node.js.path.for.package.eslint" value="project" />
101
39
  <property name="node.js.selected.package.eslint" value="(autodetect)" />
102
40
  <property name="nodejs.mocha.mocha_node_package_dir" value="$PROJECT_DIR$/node_modules/mocha" />
103
- <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
104
- <property name="nodejs_npm_path_reset_for_default_project" value="true" />
105
- <property name="nodejs_package_manager_path" value="npm" />
106
- <property name="prettierjs.PrettierConfiguration.Package" value="$PROJECT_DIR$/node_modules/prettier" />
107
- <property name="settings.editor.selected.configurable" value="AndroidSdkUpdater" />
108
41
  <property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
109
42
  </component>
110
- <component name="RecentsManager">
111
- <key name="CopyFile.RECENT_KEYS">
112
- <recent name="$PROJECT_DIR$/src" />
113
- <recent name="$PROJECT_DIR$/test" />
114
- </key>
115
- </component>
116
- <component name="RunManager" selected="Mocha.Query">
43
+ <component name="RunManager">
117
44
  <configuration name="Query" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
118
45
  <node-interpreter>project</node-interpreter>
119
46
  <node-options />
@@ -129,222 +56,46 @@
129
56
  </test-names>
130
57
  <method v="2" />
131
58
  </configuration>
132
- <configuration name="TestResultQuery" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
133
- <node-interpreter>project</node-interpreter>
134
- <node-options />
135
- <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
136
- <working-directory>$PROJECT_DIR$</working-directory>
137
- <pass-parent-env>true</pass-parent-env>
138
- <ui>bdd</ui>
139
- <extra-mocha-options />
140
- <test-kind>SUITE</test-kind>
141
- <test-file>$PROJECT_DIR$/test/TestResultsQueryTest.ts</test-file>
142
- <test-names>
143
- <name value="TestResultQuery" />
144
- </test-names>
145
- <method v="2" />
146
- </configuration>
147
- <configuration name="TestResultQuery.#getStepMatchArguments(uri, lineNumber)" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
148
- <node-interpreter>project</node-interpreter>
149
- <node-options />
150
- <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
151
- <working-directory>$PROJECT_DIR$</working-directory>
152
- <pass-parent-env>true</pass-parent-env>
153
- <ui>bdd</ui>
154
- <extra-mocha-options>--require ts-node/register</extra-mocha-options>
155
- <test-kind>SUITE</test-kind>
156
- <test-file>$PROJECT_DIR$/test/TestResultsQueryTest.ts</test-file>
157
- <test-names>
158
- <name value="TestResultQuery" />
159
- <name value="#getStepMatchArguments(uri, lineNumber)" />
160
- </test-names>
161
- <method v="2" />
162
- </configuration>
163
- <configuration name="TestStepResultQuery" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
164
- <node-interpreter>project</node-interpreter>
165
- <node-options />
166
- <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
167
- <working-directory>$PROJECT_DIR$</working-directory>
168
- <pass-parent-env>true</pass-parent-env>
169
- <ui>bdd</ui>
170
- <extra-mocha-options>--require ts-node/register</extra-mocha-options>
171
- <test-kind>SUITE</test-kind>
172
- <test-file>$PROJECT_DIR$/test/QueryTest.ts</test-file>
173
- <test-names>
174
- <name value="TestStepResultQuery" />
175
- </test-names>
176
- <method v="2" />
177
- </configuration>
178
- <configuration name="TestStepResultQuery.#getPickleStepTestStepResults(pickleStepIds).looks up results for scenario steps" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
179
- <node-interpreter>project</node-interpreter>
180
- <node-options />
181
- <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
182
- <working-directory>$PROJECT_DIR$</working-directory>
183
- <pass-parent-env>true</pass-parent-env>
184
- <ui>bdd</ui>
185
- <extra-mocha-options>--require ts-node/register</extra-mocha-options>
186
- <test-kind>TEST</test-kind>
187
- <test-file>$PROJECT_DIR$/test/QueryTest.ts</test-file>
188
- <test-names>
189
- <name value="TestStepResultQuery" />
190
- <name value="#getPickleStepTestStepResults(pickleStepIds)" />
191
- <name value="looks up results for scenario steps" />
192
- </test-names>
193
- <method v="2" />
194
- </configuration>
195
59
  <recent_temporary>
196
60
  <list>
197
61
  <item itemvalue="Mocha.Query" />
198
- <item itemvalue="Mocha.TestStepResultQuery" />
199
- <item itemvalue="Mocha.TestStepResultQuery.#getPickleStepTestStepResults(pickleStepIds).looks up results for scenario steps" />
200
- <item itemvalue="Mocha.TestResultQuery" />
201
- <item itemvalue="Mocha.TestResultQuery.#getStepMatchArguments(uri, lineNumber)" />
202
62
  </list>
203
63
  </recent_temporary>
204
64
  </component>
205
- <component name="ServiceViewManager">
206
- <option name="viewStates">
207
- <list>
208
- <serviceView>
209
- <treeState>
210
- <expand />
211
- <select />
212
- </treeState>
213
- </serviceView>
214
- </list>
215
- </option>
216
- </component>
217
- <component name="SvnConfiguration">
218
- <configuration />
219
- </component>
65
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
220
66
  <component name="TaskManager">
221
67
  <task active="true" id="Default" summary="Default task">
222
- <changelist id="8d4c810c-564f-4e04-a9c3-35c50ad472e2" name="Default Changelist" comment="" />
223
- <created>1579088447834</created>
68
+ <changelist id="3a6a5299-596c-4391-a295-0b9dcc74ca37" name="Default Changelist" comment="" />
69
+ <created>1596198791433</created>
224
70
  <option name="number" value="Default" />
225
71
  <option name="presentableId" value="Default" />
226
- <updated>1579088447834</updated>
227
- <workItem from="1579088450197" duration="14928000" />
228
- <workItem from="1579169230555" duration="512000" />
229
- <workItem from="1579174639948" duration="593000" />
230
- <workItem from="1579176376924" duration="13551000" />
231
- <workItem from="1580923907979" duration="7264000" />
232
- <workItem from="1581431075899" duration="300000" />
233
- <workItem from="1581520969196" duration="1192000" />
234
- <workItem from="1581892988265" duration="4796000" />
235
- <workItem from="1582061835393" duration="20000" />
236
- <workItem from="1583155744293" duration="1041000" />
237
- <workItem from="1583156961232" duration="2785000" />
238
- <workItem from="1583938810994" duration="2057000" />
239
- <workItem from="1583941524325" duration="3430000" />
240
- <workItem from="1584534140007" duration="2714000" />
241
- <workItem from="1585525077726" duration="92000" />
242
- <workItem from="1585647419796" duration="169000" />
72
+ <updated>1596198791433</updated>
73
+ <workItem from="1596198792691" duration="512000" />
74
+ <workItem from="1596202179444" duration="1673000" />
75
+ <workItem from="1600720281233" duration="2376000" />
76
+ <workItem from="1604947195479" duration="51000" />
243
77
  </task>
244
78
  <servers />
245
79
  </component>
246
80
  <component name="TypeScriptGeneratedFilesManager">
247
- <option name="version" value="1" />
81
+ <option name="version" value="3" />
248
82
  </component>
249
83
  <component name="WindowStateProjectService">
250
- <state x="661" y="280" key="#com.intellij.ide.util.MemberChooser" timestamp="1579089841356">
251
- <screen x="0" y="23" width="1680" height="1027" />
84
+ <state width="1621" height="264" key="GridCell.Tab.0.bottom" timestamp="1596206119824">
85
+ <screen x="0" y="23" width="1792" height="1097" />
252
86
  </state>
253
- <state x="661" y="280" key="#com.intellij.ide.util.MemberChooser/0.23.1680.1027@0.23.1680.1027" timestamp="1579089841356" />
254
- <state x="607" y="312" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1580996565750">
255
- <screen x="0" y="23" width="1680" height="1027" />
87
+ <state width="1621" height="264" key="GridCell.Tab.0.bottom/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119824" />
88
+ <state width="1621" height="264" key="GridCell.Tab.0.center" timestamp="1596206119823">
89
+ <screen x="0" y="23" width="1792" height="1097" />
256
90
  </state>
257
- <state x="607" y="312" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.23.1680.1027@0.23.1680.1027" timestamp="1580996565750" />
258
- <state width="443" height="466" key="DebuggerActiveHint" timestamp="1581973371691">
259
- <screen x="0" y="23" width="1680" height="1027" />
91
+ <state width="1621" height="264" key="GridCell.Tab.0.center/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119823" />
92
+ <state width="1621" height="264" key="GridCell.Tab.0.left" timestamp="1596206119823">
93
+ <screen x="0" y="23" width="1792" height="1097" />
260
94
  </state>
261
- <state width="443" height="466" key="DebuggerActiveHint/0.23.1680.1027@0.23.1680.1027" timestamp="1581973371691" />
262
- <state width="1454" height="324" key="GridCell.Tab.0.bottom" timestamp="1583161308659">
263
- <screen x="0" y="23" width="1680" height="1027" />
95
+ <state width="1621" height="264" key="GridCell.Tab.0.left/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119823" />
96
+ <state width="1621" height="264" key="GridCell.Tab.0.right" timestamp="1596206119823">
97
+ <screen x="0" y="23" width="1792" height="1097" />
264
98
  </state>
265
- <state width="1454" height="324" key="GridCell.Tab.0.bottom/0.23.1680.1027@0.23.1680.1027" timestamp="1583161308659" />
266
- <state width="1454" height="324" key="GridCell.Tab.0.center" timestamp="1583161308655">
267
- <screen x="0" y="23" width="1680" height="1027" />
268
- </state>
269
- <state width="1454" height="324" key="GridCell.Tab.0.center/0.23.1680.1027@0.23.1680.1027" timestamp="1583161308655" />
270
- <state width="1454" height="324" key="GridCell.Tab.0.left" timestamp="1583161308654">
271
- <screen x="0" y="23" width="1680" height="1027" />
272
- </state>
273
- <state width="1454" height="324" key="GridCell.Tab.0.left/0.23.1680.1027@0.23.1680.1027" timestamp="1583161308654" />
274
- <state width="1454" height="324" key="GridCell.Tab.0.right" timestamp="1583161308657">
275
- <screen x="0" y="23" width="1680" height="1027" />
276
- </state>
277
- <state width="1454" height="324" key="GridCell.Tab.0.right/0.23.1680.1027@0.23.1680.1027" timestamp="1583161308657" />
278
- <state width="1454" height="329" key="GridCell.Tab.1.bottom" timestamp="1582045148765">
279
- <screen x="0" y="23" width="1680" height="1027" />
280
- </state>
281
- <state width="1454" height="329" key="GridCell.Tab.1.bottom/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148765" />
282
- <state width="1454" height="329" key="GridCell.Tab.1.center" timestamp="1582045148764">
283
- <screen x="0" y="23" width="1680" height="1027" />
284
- </state>
285
- <state width="1454" height="329" key="GridCell.Tab.1.center/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148764" />
286
- <state width="1454" height="329" key="GridCell.Tab.1.left" timestamp="1582045148764">
287
- <screen x="0" y="23" width="1680" height="1027" />
288
- </state>
289
- <state width="1454" height="329" key="GridCell.Tab.1.left/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148764" />
290
- <state width="1454" height="329" key="GridCell.Tab.1.right" timestamp="1582045148765">
291
- <screen x="0" y="23" width="1680" height="1027" />
292
- </state>
293
- <state width="1454" height="329" key="GridCell.Tab.1.right/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148765" />
294
- <state width="1454" height="329" key="GridCell.Tab.2.bottom" timestamp="1582045148766">
295
- <screen x="0" y="23" width="1680" height="1027" />
296
- </state>
297
- <state width="1454" height="329" key="GridCell.Tab.2.bottom/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148766" />
298
- <state width="1454" height="329" key="GridCell.Tab.2.center" timestamp="1582045148766">
299
- <screen x="0" y="23" width="1680" height="1027" />
300
- </state>
301
- <state width="1454" height="329" key="GridCell.Tab.2.center/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148766" />
302
- <state width="1454" height="329" key="GridCell.Tab.2.left" timestamp="1582045148765">
303
- <screen x="0" y="23" width="1680" height="1027" />
304
- </state>
305
- <state width="1454" height="329" key="GridCell.Tab.2.left/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148765" />
306
- <state width="1454" height="329" key="GridCell.Tab.2.right" timestamp="1582045148766">
307
- <screen x="0" y="23" width="1680" height="1027" />
308
- </state>
309
- <state width="1454" height="329" key="GridCell.Tab.2.right/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148766" />
310
- <state width="1454" height="329" key="GridCell.Tab.3.bottom" timestamp="1582045148768">
311
- <screen x="0" y="23" width="1680" height="1027" />
312
- </state>
313
- <state width="1454" height="329" key="GridCell.Tab.3.bottom/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148768" />
314
- <state width="1454" height="329" key="GridCell.Tab.3.center" timestamp="1582045148767">
315
- <screen x="0" y="23" width="1680" height="1027" />
316
- </state>
317
- <state width="1454" height="329" key="GridCell.Tab.3.center/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148767" />
318
- <state width="1454" height="329" key="GridCell.Tab.3.left" timestamp="1582045148767">
319
- <screen x="0" y="23" width="1680" height="1027" />
320
- </state>
321
- <state width="1454" height="329" key="GridCell.Tab.3.left/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148767" />
322
- <state width="1454" height="329" key="GridCell.Tab.3.right" timestamp="1582045148768">
323
- <screen x="0" y="23" width="1680" height="1027" />
324
- </state>
325
- <state width="1454" height="329" key="GridCell.Tab.3.right/0.23.1680.1027@0.23.1680.1027" timestamp="1582045148768" />
326
- <state x="523" y="391" key="com.intellij.ide.util.TipDialog" timestamp="1583941525137">
327
- <screen x="0" y="23" width="1680" height="1027" />
328
- </state>
329
- <state x="523" y="391" key="com.intellij.ide.util.TipDialog/0.23.1680.1027@0.23.1680.1027" timestamp="1583941525137" />
330
- <state x="497" y="319" width="858" height="538" key="find.popup" timestamp="1581521304782">
331
- <screen x="0" y="23" width="1680" height="1027" />
332
- </state>
333
- <state x="497" y="319" width="858" height="538" key="find.popup/0.23.1680.1027@0.23.1680.1027" timestamp="1581521304782" />
334
- <state x="534" y="280" width="670" height="676" key="search.everywhere.popup" timestamp="1581972379645">
335
- <screen x="0" y="23" width="1680" height="1027" />
336
- </state>
337
- <state x="534" y="280" width="670" height="676" key="search.everywhere.popup/0.23.1680.1027@0.23.1680.1027" timestamp="1581972379645" />
338
- </component>
339
- <component name="XDebuggerManager">
340
- <breakpoint-manager>
341
- <breakpoints>
342
- <line-breakpoint enabled="true" type="javascript">
343
- <url>file://$PROJECT_DIR$/test/QueryTest.ts</url>
344
- <line>72</line>
345
- <option name="timeStamp" value="1" />
346
- </line-breakpoint>
347
- </breakpoints>
348
- </breakpoint-manager>
99
+ <state width="1621" height="264" key="GridCell.Tab.0.right/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119823" />
349
100
  </component>
350
101
  </project>
package/default.mk CHANGED
@@ -4,6 +4,7 @@ rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(su
4
4
  TYPESCRIPT_SOURCE_FILES = $(sort $(call rwildcard,src test,*.ts *.tsx))
5
5
  PRIVATE = $(shell node -e "console.log(require('./package.json').private)")
6
6
  NPM ?= npm
7
+ IS_TESTDATA = $(findstring -testdata,${CURDIR})
7
8
 
8
9
  ifeq (yarn,$(NPM))
9
10
  LOCKFILE = yarn.lock
@@ -43,33 +44,49 @@ update-dependencies:
43
44
  .PHONY: update-dependencies
44
45
 
45
46
  remove-local-dependencies:
47
+ ifeq ($(IS_TESTDATA),-testdata)
48
+ # no-op
49
+ else
46
50
  cat package.json | sed 's/"@cucumber\/\(.*\)": "file:..\/..\/.*"/"@cucumber\/\1": "^0.0.0"/' > package.json.tmp
47
51
  mv package.json.tmp package.json
52
+ endif
48
53
  .PHONY: remove-local-dependencies
49
54
 
50
55
  pre-release: remove-local-dependencies update-version update-dependencies clean default
51
56
  .PHONY: pre-release
52
57
 
53
58
  update-version:
59
+ ifeq ($(IS_TESTDATA),-testdata)
60
+ # no-op
61
+ else
54
62
  ifdef NEW_VERSION
55
63
  $(NPM) --no-git-tag-version --allow-same-version version "$(NEW_VERSION)"
56
64
  else
57
65
  @echo -e "\033[0;31mNEW_VERSION is not defined. Can't update version :-(\033[0m"
58
66
  exit 1
59
67
  endif
68
+ endif
60
69
  .PHONY: update-version
61
70
 
62
71
  publish: .codegen
72
+ ifeq ($(IS_TESTDATA),-testdata)
73
+ # no-op
74
+ else
63
75
  ifneq (true,$(PRIVATE))
64
76
  $(NPM) publish --access public
65
77
  else
66
78
  @echo "Not publishing private npm module"
67
79
  endif
80
+ endif
68
81
  .PHONY: publish
69
82
 
70
83
  post-release:
84
+ ifeq ($(IS_TESTDATA),-testdata)
85
+ # no-op
86
+ else
71
87
  cat package.json | sed 's/"@cucumber\/\(.*\)": .*"/"@cucumber\/\1": "file:..\/..\/\1\/javascript"/' > package.json.tmp
72
88
  mv package.json.tmp package.json
89
+ endif
73
90
  .PHONY: post-release
74
91
 
75
92
  clean: clean-javascript
@@ -3,34 +3,44 @@ export default class Query {
3
3
  private readonly testStepResultByPickleId;
4
4
  private readonly testStepResultsByPickleStepId;
5
5
  private readonly testStepById;
6
+ private readonly testCaseByPickleId;
6
7
  private readonly pickleIdByTestStepId;
7
8
  private readonly pickleStepIdByTestStepId;
8
- private readonly attachmentsByPickleStepId;
9
+ private readonly testStepResultsbyTestStepId;
10
+ private readonly testStepIdsByPickleStepId;
11
+ private readonly hooksById;
12
+ private readonly attachmentsByTestStepId;
9
13
  private readonly stepMatchArgumentsListsByPickleStepId;
10
14
  update(envelope: messages.IEnvelope): void;
11
15
  /**
12
16
  * Gets all the results for multiple pickle steps
13
17
  * @param pickleStepIds
14
18
  */
15
- getPickleStepTestStepResults(pickleStepIds: ReadonlyArray<string>): ReadonlyArray<messages.ITestStepResult>;
19
+ getPickleStepTestStepResults(pickleStepIds: ReadonlyArray<string>): ReadonlyArray<messages.TestStepFinished.ITestStepResult>;
16
20
  /**
17
21
  * Gets all the results for multiple pickles
18
22
  * @param pickleIds
19
23
  */
20
- getPickleTestStepResults(pickleIds: ReadonlyArray<string>): ReadonlyArray<messages.ITestStepResult>;
24
+ getPickleTestStepResults(pickleIds: ReadonlyArray<string>): ReadonlyArray<messages.TestStepFinished.ITestStepResult>;
21
25
  /**
22
26
  * Gets the worst result
23
27
  * @param testStepResults
24
28
  */
25
- getWorstTestStepResult(testStepResults: ReadonlyArray<messages.ITestStepResult>): messages.ITestStepResult;
29
+ getWorstTestStepResult(testStepResults: ReadonlyArray<messages.TestStepFinished.ITestStepResult>): messages.TestStepFinished.ITestStepResult;
26
30
  /**
27
31
  * Gets all the attachments for multiple pickle steps
28
32
  * @param pickleStepIds
29
33
  */
30
34
  getPickleStepAttachments(pickleStepIds: ReadonlyArray<string>): ReadonlyArray<messages.IAttachment>;
35
+ getTestStepsAttachments(testStepIds: ReadonlyArray<string>): ReadonlyArray<messages.IAttachment>;
31
36
  /**
32
37
  * Get StepMatchArguments for a pickle step
33
38
  * @param pickleStepId
34
39
  */
35
40
  getStepMatchArgumentsLists(pickleStepId: string): ReadonlyArray<messages.TestCase.TestStep.IStepMatchArgumentsList> | undefined;
41
+ getHook(hookId: string): messages.IHook;
42
+ getBeforeHookSteps(pickleId: string): ReadonlyArray<messages.TestCase.ITestStep>;
43
+ getAfterHookSteps(pickleId: string): ReadonlyArray<messages.TestCase.ITestStep>;
44
+ private identifyHookSteps;
45
+ getTestStepResults(testStepId: string): messages.TestStepFinished.ITestStepResult[];
36
46
  }