@uuv/runner-commons 2.49.0 → 2.50.0
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/CHANGELOG.md +8 -0
- package/dist/runner/event/model.d.ts +16 -18
- package/dist/runner/utils.d.ts +8 -0
- package/dist/runner/utils.js +41 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [2.50.0](https://github.com/e2e-test-quest/uuv/compare/runner-commons-v2.49.0...runner-commons-v2.50.0) (2025-06-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **assistant:** fix assistant uuv test, [#1006](https://github.com/e2e-test-quest/uuv/issues/1006) ([d670572](https://github.com/e2e-test-quest/uuv/commit/d6705723ef7f6f94962b63d52788db721c80c2e2))
|
|
7
|
+
* update cypress to v14, nx to v21, eslint to v9 and move assitant builder to vite ([1db2aa7](https://github.com/e2e-test-quest/uuv/commit/1db2aa7930653af95dc2da27fcf8ef2e38cd737a))
|
|
8
|
+
|
|
1
9
|
# [2.49.0](https://github.com/e2e-test-quest/uuv/compare/runner-commons-v2.48.0...runner-commons-v2.49.0) (2025-05-11)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const UUV_IPC_SERVER_NAME = "uuvIpcServer";
|
|
2
2
|
export declare const UUV_IPC_PUBLISHER = "uuvIpcPublisher";
|
|
3
|
-
export
|
|
3
|
+
export type UUVEvent = {
|
|
4
4
|
type: UUVEventType;
|
|
5
5
|
data: UUVEventProgressStart | UUVEventTestSuiteStarted | UUVEventTestStarted | UUVEventTestFinished | UUVEventTestFailed | UUVEventTestIgnored | UUVEventTestSuiteFinished | UUVEventProgressFinish;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
export declare enum UUVEventType {
|
|
8
8
|
PROGRESS_START = "progressStart",
|
|
9
9
|
TEST_SUITE_STARTED = "testSuiteStarted",
|
|
@@ -14,34 +14,32 @@ export declare enum UUVEventType {
|
|
|
14
14
|
TEST_SUITE_FINISHED = "testSuiteFinished",
|
|
15
15
|
PROGRESS_FINISH = "progressFinish"
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
export interface UUVEventTestSuiteStarted {
|
|
17
|
+
export type UUVEventProgressStart = object;
|
|
18
|
+
export type UUVEventTestSuiteStarted = {
|
|
20
19
|
testSuiteName: string;
|
|
21
20
|
testSuitelocation: string;
|
|
22
|
-
}
|
|
23
|
-
export
|
|
21
|
+
};
|
|
22
|
+
export type UUVEventTestStarted = {
|
|
24
23
|
testName: string;
|
|
25
24
|
testSuiteName: string;
|
|
26
25
|
testSuitelocation: string;
|
|
27
|
-
}
|
|
28
|
-
export
|
|
26
|
+
};
|
|
27
|
+
export type UUVEventTestFinished = {
|
|
29
28
|
testName: string;
|
|
30
29
|
testSuiteName: string;
|
|
31
30
|
duration: number;
|
|
32
|
-
}
|
|
33
|
-
export
|
|
31
|
+
};
|
|
32
|
+
export type UUVEventTestFailed = {
|
|
34
33
|
testName: string;
|
|
35
34
|
testSuiteName: string;
|
|
36
35
|
duration: number;
|
|
37
|
-
}
|
|
38
|
-
export
|
|
36
|
+
};
|
|
37
|
+
export type UUVEventTestIgnored = {
|
|
39
38
|
testName: string;
|
|
40
39
|
testSuiteName: string;
|
|
41
40
|
duration?: number;
|
|
42
|
-
}
|
|
43
|
-
export
|
|
41
|
+
};
|
|
42
|
+
export type UUVEventTestSuiteFinished = {
|
|
44
43
|
testSuiteName: string;
|
|
45
|
-
}
|
|
46
|
-
export
|
|
47
|
-
}
|
|
44
|
+
};
|
|
45
|
+
export type UUVEventProgressFinish = object;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update Chart.js version in the HTML report files.
|
|
3
|
+
*
|
|
4
|
+
* @param reportDir
|
|
5
|
+
* @param {string} oldVersion - old Chart.js version (ex: '2.5.0')
|
|
6
|
+
* @param {string} newVersion - new Chart.js version (ex: '2.6.0')
|
|
7
|
+
*/
|
|
8
|
+
export declare function updateChartJsVersion(reportDir: string, oldVersion: any, newVersion: any): void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.updateChartJsVersion = updateChartJsVersion;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
|
+
/**
|
|
10
|
+
* Update Chart.js version in the HTML report files.
|
|
11
|
+
*
|
|
12
|
+
* @param reportDir
|
|
13
|
+
* @param {string} oldVersion - old Chart.js version (ex: '2.5.0')
|
|
14
|
+
* @param {string} newVersion - new Chart.js version (ex: '2.6.0')
|
|
15
|
+
*/
|
|
16
|
+
function updateChartJsVersion(reportDir, oldVersion, newVersion) {
|
|
17
|
+
const oldScript = `<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/${oldVersion}/Chart.min.js"></script>`;
|
|
18
|
+
const newScript = `<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/${newVersion}/Chart.min.js"></script>`;
|
|
19
|
+
const baseDir = reportDir;
|
|
20
|
+
const filesToUpdate = ["index.html"];
|
|
21
|
+
// Add all html files of ./features/ directory
|
|
22
|
+
const featuresDir = path_1.default.join(baseDir, "features");
|
|
23
|
+
if (fs_1.default.existsSync(featuresDir)) {
|
|
24
|
+
const featureFiles = fs_1.default.readdirSync(featuresDir)
|
|
25
|
+
.filter(file => file.endsWith(".html"))
|
|
26
|
+
.map(file => path_1.default.join("features", file));
|
|
27
|
+
filesToUpdate.push(...featureFiles);
|
|
28
|
+
}
|
|
29
|
+
// Update files
|
|
30
|
+
filesToUpdate.forEach((filePath) => {
|
|
31
|
+
const fullPath = path_1.default.join(baseDir, filePath);
|
|
32
|
+
if (!fs_1.default.existsSync(fullPath)) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
let content = fs_1.default.readFileSync(fullPath, "utf8");
|
|
36
|
+
if (content.includes(oldScript)) {
|
|
37
|
+
content = content.replace(oldScript, newScript);
|
|
38
|
+
fs_1.default.writeFileSync(fullPath, content, "utf8");
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/runner-commons",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.50.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
|
|
6
6
|
"description": "A common lib for uuv",
|
|
@@ -36,10 +36,6 @@
|
|
|
36
36
|
"unit-tests": "jest --coverage"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
40
|
-
"@typescript-eslint/parser": "5.62.0",
|
|
41
|
-
"eslint": "8.57.1",
|
|
42
|
-
"jest": "29.7.0",
|
|
43
39
|
"xml2js": "^0.6.2"
|
|
44
40
|
},
|
|
45
41
|
"files": [
|
|
@@ -72,6 +68,11 @@
|
|
|
72
68
|
"import": "./dist/runner/event/index.js",
|
|
73
69
|
"require": "./dist/runner/event/index.js",
|
|
74
70
|
"types": "./dist/runner/event/index.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./runner/utils": {
|
|
73
|
+
"import": "./dist/runner/utils.js",
|
|
74
|
+
"require": "./dist/runner/utils.js",
|
|
75
|
+
"types": "./dist/runner/utils.d.ts"
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|