@zeesoft/i18n-verify 3.2.7 → 3.2.9
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.
- package/dist/executor.mjs +1 -1
- package/dist/index.mjs +4 -0
- package/index.d.ts +5 -0
- package/package.json +1 -1
package/dist/executor.mjs
CHANGED
|
@@ -6685,7 +6685,7 @@ const getRootProjectMainDir = () => {
|
|
|
6685
6685
|
};
|
|
6686
6686
|
const getRootProjectPackageJson = (rootProjectPath = getRootProjectMainDir()) => getFileContent(joinPaths(rootProjectPath, "package.json"));
|
|
6687
6687
|
const getRootProjectName = () => getRootProjectPackageJson()?.match(/"name": "([^"]+)",/)?.[1] || "";
|
|
6688
|
-
const getConfigFilePath = () => joinPaths(process.cwd(), CONFIG_FILE_NAME);
|
|
6688
|
+
const getConfigFilePath = () => process.env.I18N_RC_CONFIG_PATH ? process.env.I18N_RC_CONFIG_PATH : joinPaths(process.cwd(), CONFIG_FILE_NAME);
|
|
6689
6689
|
const getConfigTemplate = (type = "") => `{
|
|
6690
6690
|
"appName": "${getRootProjectName()}",
|
|
6691
6691
|
"type": "${type}", // set automation framework type ${arr2Txt(
|
package/dist/index.mjs
CHANGED
|
@@ -17,6 +17,9 @@ const genReportTable = () => {
|
|
|
17
17
|
const getLocale = () => {
|
|
18
18
|
return Config.getLocale();
|
|
19
19
|
};
|
|
20
|
+
const getReportPath = () => {
|
|
21
|
+
return Reports.getReportPath();
|
|
22
|
+
};
|
|
20
23
|
const verify = async ({
|
|
21
24
|
verificationArea,
|
|
22
25
|
staticLocators,
|
|
@@ -38,6 +41,7 @@ Config.init();
|
|
|
38
41
|
export {
|
|
39
42
|
genReportTable,
|
|
40
43
|
getLocale,
|
|
44
|
+
getReportPath,
|
|
41
45
|
logger,
|
|
42
46
|
setLocale,
|
|
43
47
|
setRuntime,
|
package/index.d.ts
CHANGED
|
@@ -59,6 +59,11 @@ export function genReportTable(): void;
|
|
|
59
59
|
*/
|
|
60
60
|
export function getLocale(): string;
|
|
61
61
|
|
|
62
|
+
/**
|
|
63
|
+
* @summary returns the path where reports are generated
|
|
64
|
+
*/
|
|
65
|
+
export function getReportPath(): string;
|
|
66
|
+
|
|
62
67
|
/**
|
|
63
68
|
* @summary performs i18n verification to the supplied selector area
|
|
64
69
|
* `Note: "config" method should be called to configure driver and locale details before starting verification`
|
package/package.json
CHANGED