@dev-blinq/cucumber_client 1.0.1737-dev → 1.0.1739-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.
|
@@ -951,7 +951,7 @@ export async function updateStepDefinitionsOld({ scenario, featureName, projectD
|
|
|
951
951
|
|
|
952
952
|
export async function updateStepDefinitions({ scenario, featureName, projectDir, logger, bvtSnapshotsDir }) {
|
|
953
953
|
try {
|
|
954
|
-
const { featureFolder, utilsFilePath, utilsContent } = handleFileInitOps(projectDir);
|
|
954
|
+
const { featureFolder, utilsFilePath, utilsContent } = handleFileInitOps(projectDir, logger);
|
|
955
955
|
const steps = scenario.steps;
|
|
956
956
|
|
|
957
957
|
const stepsDefinitions = new StepsDefinitions(projectDir);
|
|
@@ -1067,7 +1067,7 @@ export async function updateStepDefinitions({ scenario, featureName, projectDir,
|
|
|
1067
1067
|
} catch (error) {
|
|
1068
1068
|
logger.error(
|
|
1069
1069
|
"❌ updateStepDefinitions() failed",
|
|
1070
|
-
JSON.
|
|
1070
|
+
JSON.stringify(
|
|
1071
1071
|
{
|
|
1072
1072
|
message: error?.message,
|
|
1073
1073
|
meta: error?.meta,
|
|
@@ -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
|
-
|
|
39
|
-
|
|
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}`,
|