@dev-blinq/cucumber_client 1.0.1738-dev → 1.0.1740-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.
@@ -867,6 +867,7 @@ export async function executeStep({ stepsDefinitions, cucumberStep, context, cod
867
867
  }
868
868
  }
869
869
 
870
+ // deprecated
870
871
  export async function updateStepDefinitionsOld({ scenario, featureName, projectDir, logger }) {
871
872
  // set the candidate step definition file name
872
873
  // set the utils file path
@@ -951,7 +952,8 @@ export async function updateStepDefinitionsOld({ scenario, featureName, projectD
951
952
 
952
953
  export async function updateStepDefinitions({ scenario, featureName, projectDir, logger, bvtSnapshotsDir }) {
953
954
  try {
954
- const { featureFolder, utilsFilePath, utilsContent } = handleFileInitOps(projectDir);
955
+ logger.info("🔵 Starting updateStepDefinitions()");
956
+ const { featureFolder, utilsFilePath, utilsContent } = handleFileInitOps(projectDir, logger);
955
957
  const steps = scenario.steps;
956
958
 
957
959
  const stepsDefinitions = new StepsDefinitions(projectDir);
@@ -9,7 +9,7 @@ import {
9
9
  UTF8_ENCODING,
10
10
  } from "./constants.js";
11
11
 
12
- export function handleFileInitOps(projectDir) {
12
+ export function handleFileInitOps(projectDir, logger) {
13
13
  try {
14
14
  const stepDefinitionFolderPath = path.join(
15
15
  projectDir,
@@ -35,8 +35,8 @@ export function handleFileInitOps(projectDir) {
35
35
  );
36
36
  const utilsContent = readFileSync(utilsTemplateFilePath, UTF8_ENCODING);
37
37
  writeFileSync(utilsFilePath, utilsContent, UTF8_ENCODING);
38
- console.log("🔆 utilsTemplateFilePath:", utilsTemplateFilePath);
39
- console.log("☀️ exists:", existsSync(utilsTemplateFilePath));
38
+ logger.info("🔆 utilsTemplateFilePath:", utilsTemplateFilePath);
39
+ logger.info("☀️ exists:", existsSync(utilsTemplateFilePath));
40
40
  const hooksTemplateFilePath = path.join(
41
41
  __dirname,
42
42
  `../../${FIXED_FOLDER_NAMES.ASSETS}`,
@@ -55,7 +55,7 @@ export function handleFileInitOps(projectDir) {
55
55
  } catch (error) {
56
56
  throw new UpdateStepDefinitionsError({
57
57
  type: SaveJobErrorType.FILE_SYSTEM_ERROR,
58
- message: "Failed to initialize step definition folder structure",
58
+ message: "Failed to initialize step definition folder structure",
59
59
  meta: { reason: getErrorMessage(error) },
60
60
  });
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1738-dev",
3
+ "version": "1.0.1740-dev",
4
4
  "description": " ",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",