@dev-blinq/cucumber_client 1.0.1735-dev → 1.0.1737-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.
|
@@ -11,14 +11,8 @@ import { generateApiCode } from "../code_gen/api_codegen.js";
|
|
|
11
11
|
import { tmpdir } from "node:os";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
13
13
|
import { getErrorMessage } from "../utils/socket_logger.js";
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
FIXED_FOLDER_NAMES,
|
|
17
|
-
SaveJobErrorType,
|
|
18
|
-
UpdateStepDefinitionsError,
|
|
19
|
-
UTF8_ENCODING,
|
|
20
|
-
} from "./constants.js";
|
|
21
|
-
import { handleFileInitOps, potentialErrorWrapper, processScenarioSteps, writeTemplateFiles } from "./utils.js";
|
|
14
|
+
import { FIXED_FOLDER_NAMES, SaveJobErrorType, UpdateStepDefinitionsError, UTF8_ENCODING } from "./constants.js";
|
|
15
|
+
import { handleFileInitOps, potentialErrorWrapper } from "./utils.js";
|
|
22
16
|
|
|
23
17
|
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
24
18
|
|
|
@@ -1071,7 +1065,20 @@ export async function updateStepDefinitions({ scenario, featureName, projectDir,
|
|
|
1071
1065
|
|
|
1072
1066
|
writeFileSync(utilsFilePath, utilsContent, UTF8_ENCODING);
|
|
1073
1067
|
} catch (error) {
|
|
1074
|
-
logger.error(
|
|
1068
|
+
logger.error(
|
|
1069
|
+
"❌ updateStepDefinitions() failed",
|
|
1070
|
+
JSON.str(
|
|
1071
|
+
{
|
|
1072
|
+
message: error?.message,
|
|
1073
|
+
meta: error?.meta,
|
|
1074
|
+
stack: error?.stack,
|
|
1075
|
+
},
|
|
1076
|
+
null,
|
|
1077
|
+
2
|
|
1078
|
+
),
|
|
1079
|
+
"\nStringified error: ❌",
|
|
1080
|
+
getErrorMessage(error)
|
|
1081
|
+
);
|
|
1075
1082
|
throw error instanceof UpdateStepDefinitionsError
|
|
1076
1083
|
? error
|
|
1077
1084
|
: new UpdateStepDefinitionsError({
|
|
@@ -35,7 +35,8 @@ export function handleFileInitOps(projectDir) {
|
|
|
35
35
|
);
|
|
36
36
|
const utilsContent = readFileSync(utilsTemplateFilePath, UTF8_ENCODING);
|
|
37
37
|
writeFileSync(utilsFilePath, utilsContent, UTF8_ENCODING);
|
|
38
|
-
|
|
38
|
+
console.log("🔆 utilsTemplateFilePath:", utilsTemplateFilePath);
|
|
39
|
+
console.log("☀️ exists:", existsSync(utilsTemplateFilePath));
|
|
39
40
|
const hooksTemplateFilePath = path.join(
|
|
40
41
|
__dirname,
|
|
41
42
|
`../../${FIXED_FOLDER_NAMES.ASSETS}`,
|