@lvce-editor/test-with-playwright 6.0.1 → 6.4.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/bin/test-with-playwright.js +0 -0
- package/dist/main.js +8 -3
- package/package.json +2 -3
|
File without changes
|
package/dist/main.js
CHANGED
|
@@ -51,6 +51,10 @@ const handleFinalResult = finalResult => {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
+
const Pass$1 = 'PASS';
|
|
55
|
+
const Skip$1 = 'SKIP';
|
|
56
|
+
const Fail$1 = 'FAIL';
|
|
57
|
+
|
|
54
58
|
const Pass = 1;
|
|
55
59
|
const Skip = 2;
|
|
56
60
|
const Fail = 3;
|
|
@@ -65,20 +69,20 @@ const handleResultPassed = result => {
|
|
|
65
69
|
end
|
|
66
70
|
} = result;
|
|
67
71
|
const duration = getDuration(start, end);
|
|
68
|
-
console.info(
|
|
72
|
+
console.info(`${Pass$1} ${name} in ${duration}ms`);
|
|
69
73
|
};
|
|
70
74
|
const handleResultSkipped = result => {
|
|
71
75
|
const {
|
|
72
76
|
name
|
|
73
77
|
} = result;
|
|
74
|
-
console.info(
|
|
78
|
+
console.info(`${Skip$1} ${name}`);
|
|
75
79
|
};
|
|
76
80
|
const handleResultFailed = result => {
|
|
77
81
|
const {
|
|
78
82
|
name,
|
|
79
83
|
error
|
|
80
84
|
} = result;
|
|
81
|
-
console.error(
|
|
85
|
+
console.error(`${Fail$1} ${name}: ${error}`);
|
|
82
86
|
};
|
|
83
87
|
const handleResult = result => {
|
|
84
88
|
const {
|
|
@@ -1393,4 +1397,5 @@ const main = async () => {
|
|
|
1393
1397
|
});
|
|
1394
1398
|
};
|
|
1395
1399
|
|
|
1400
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
1396
1401
|
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-with-playwright",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "CLI tool for running Playwright tests",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,10 +12,9 @@
|
|
|
12
12
|
"main": "dist/main.js",
|
|
13
13
|
"bin": "bin/test-with-playwright.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lvce-editor/test-with-playwright-worker": "6.0
|
|
15
|
+
"@lvce-editor/test-with-playwright-worker": "6.4.0",
|
|
16
16
|
"@lvce-editor/test-worker": "^5.10.0"
|
|
17
17
|
},
|
|
18
|
-
"devDependencies": {},
|
|
19
18
|
"engines": {
|
|
20
19
|
"node": ">=22"
|
|
21
20
|
},
|