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