@dev-blinq/cucumber_client 1.0.1730-dev → 1.0.1732-dev
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.
|
@@ -898,7 +898,8 @@ export async function updateStepDefinitions({ scenario, featureName, projectDir,
|
|
|
898
898
|
|
|
899
899
|
stepsDefinitions.load(false);
|
|
900
900
|
|
|
901
|
-
for (
|
|
901
|
+
for (let index = 0; index < steps.length; index++) {
|
|
902
|
+
const step = steps[index];
|
|
902
903
|
try {
|
|
903
904
|
if (step.internalImplementedStepId) {
|
|
904
905
|
const si = steps.findIndex((s) => s.id === step.internalImplementedStepId);
|
|
@@ -930,7 +931,7 @@ export async function updateStepDefinitions({ scenario, featureName, projectDir,
|
|
|
930
931
|
step.commands = step.commands.map((cmd) => toRecordingStep(cmd, scenario.parametersMap));
|
|
931
932
|
}
|
|
932
933
|
|
|
933
|
-
|
|
934
|
+
return;
|
|
934
935
|
}
|
|
935
936
|
|
|
936
937
|
const cucumberStep = getCucumberStep({ step });
|
|
@@ -947,7 +948,7 @@ export async function updateStepDefinitions({ scenario, featureName, projectDir,
|
|
|
947
948
|
parametersMap: scenario.parametersMap,
|
|
948
949
|
});
|
|
949
950
|
|
|
950
|
-
if (!codePage)
|
|
951
|
+
if (!codePage) return;
|
|
951
952
|
|
|
952
953
|
const res = await codePage.save();
|
|
953
954
|
if (!res) {
|
|
@@ -957,7 +958,9 @@ export async function updateStepDefinitions({ scenario, featureName, projectDir,
|
|
|
957
958
|
}
|
|
958
959
|
} catch (error) {
|
|
959
960
|
logger.error(`❌ Failed to update step definition for step "${step.text}": ${getErrorMessage(error)}`);
|
|
960
|
-
throw new DomainError(
|
|
961
|
+
throw new DomainError(
|
|
962
|
+
`Failed to update step definition for step "${step.text}" at index ${index}: ${getErrorMessage(error)}`
|
|
963
|
+
);
|
|
961
964
|
}
|
|
962
965
|
}
|
|
963
966
|
|