@flakiness/playwright 1.3.3 → 1.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/README.md
CHANGED
package/lib/playwright-test.js
CHANGED
|
@@ -3,16 +3,18 @@ import {
|
|
|
3
3
|
GitWorktree,
|
|
4
4
|
ReportUtils,
|
|
5
5
|
showReport,
|
|
6
|
+
showReportCommand,
|
|
6
7
|
CPUUtilization,
|
|
7
8
|
RAMUtilization,
|
|
8
9
|
uploadReport,
|
|
9
10
|
writeReport
|
|
10
11
|
} from "@flakiness/sdk";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
-
const
|
|
12
|
+
import fs from "node:fs";
|
|
13
|
+
import path from "node:path";
|
|
14
|
+
import * as nodeUtil from "node:util";
|
|
15
|
+
const styleText = (format, text) => nodeUtil.styleText?.(format, text) ?? text;
|
|
16
|
+
const warn = (txt) => console.warn(styleText("yellow", `[flakiness.io] ${txt}`));
|
|
17
|
+
const err = (txt) => console.error(styleText("red", `[flakiness.io] ${txt}`));
|
|
16
18
|
const log = (txt) => console.log(`[flakiness.io] ${txt}`);
|
|
17
19
|
function parseDurationMS(value) {
|
|
18
20
|
if (isNaN(value))
|
|
@@ -265,12 +267,11 @@ class FlakinessReporter {
|
|
|
265
267
|
if (shouldOpen) {
|
|
266
268
|
await showReport(this._outputFolder);
|
|
267
269
|
} else {
|
|
268
|
-
const
|
|
269
|
-
const folder = defaultOutputFolder === this._outputFolder ? "" : path.relative(process.cwd(), this._outputFolder);
|
|
270
|
+
const command = showReportCommand(this._outputFolder);
|
|
270
271
|
console.log(`
|
|
271
272
|
To open last Flakiness report, run:
|
|
272
273
|
|
|
273
|
-
${
|
|
274
|
+
${styleText("cyan", command)}
|
|
274
275
|
`);
|
|
275
276
|
}
|
|
276
277
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flakiness/playwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@flakiness/flakiness-report": "^0.28.0",
|
|
41
|
-
"@flakiness/sdk": "2.
|
|
42
|
-
"chalk": "^5.6.2"
|
|
41
|
+
"@flakiness/sdk": "2.4.0"
|
|
43
42
|
},
|
|
44
43
|
"scripts": {
|
|
45
44
|
"build": "kubik build.mts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright-test.d.ts","sourceRoot":"","sources":["../../src/playwright-test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playwright-test.d.ts","sourceRoot":"","sources":["../../src/playwright-test.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,UAAU,EAEV,UAAU,EAEV,QAAQ,EACR,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAEvC,MAAM,2BAA2B,CAAC;AAgCnC,KAAK,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,QAAQ;IAgB5C,OAAO,CAAC,QAAQ;IAf5B,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,QAAQ,CAAwC;IACxD,OAAO,CAAC,mBAAmB,CAAmB;IAE9C,OAAO,CAAC,eAAe,CAAyC;IAChE,OAAO,CAAC,eAAe,CAAyC;IAChE,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,OAAO,CAAC,YAAY,CAAgC;IACpD,OAAO,CAAC,aAAa,CAAS;IAE9B,OAAO,CAAC,OAAO,CAAC,CAAa;IAE7B,OAAO,CAAC,eAAe,CAAC,CAAiB;gBAErB,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