@flakiness/playwright 1.8.0 → 1.9.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/lib/playwright-test.js
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import * as nodeUtil from "node:util";
|
|
18
|
+
import pkg from "../package.json" with { type: "json" };
|
|
18
19
|
const styleText = (format, text) => nodeUtil.styleText?.(format, text) ?? text;
|
|
19
20
|
const warn = (txt) => console.warn(styleText("yellow", `[flakiness.io] ${txt}`));
|
|
20
21
|
const err = (txt) => console.error(styleText("red", `[flakiness.io] ${txt}`));
|
|
@@ -282,6 +283,9 @@ class FlakinessReporter {
|
|
|
282
283
|
relatedCommitIds: [],
|
|
283
284
|
configPath,
|
|
284
285
|
url: CIUtils.runUrl(),
|
|
286
|
+
generatedBy: { name: pkg.name, version: pkg.version },
|
|
287
|
+
testRunner: this._config.version ? { name: "@playwright/test", version: this._config.version } : void 0,
|
|
288
|
+
runtime: ReportUtils.detectRuntime(),
|
|
285
289
|
environments,
|
|
286
290
|
suites: await this._toFKSuites(context, this._rootSuite),
|
|
287
291
|
unattributedErrors: this._unattributedErrors.map((e) => this._toFKTestError(context, e)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flakiness/playwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
],
|
|
28
28
|
"author": "Degu Labs, Inc",
|
|
29
29
|
"license": "MIT",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": "^20.17.0 || >=22.9.0"
|
|
32
|
+
},
|
|
30
33
|
"devDependencies": {
|
|
31
34
|
"@flakiness/playwright": "^1.6.0",
|
|
32
35
|
"@playwright/test": "^1.57.0",
|
|
@@ -37,8 +40,8 @@
|
|
|
37
40
|
"typescript": "^5.9.3"
|
|
38
41
|
},
|
|
39
42
|
"dependencies": {
|
|
40
|
-
"@flakiness/flakiness-report": "^0.
|
|
41
|
-
"@flakiness/sdk": "^3.
|
|
43
|
+
"@flakiness/flakiness-report": "^0.34.0",
|
|
44
|
+
"@flakiness/sdk": "^3.2.0"
|
|
42
45
|
},
|
|
43
46
|
"scripts": {
|
|
44
47
|
"build": "kubik build.mts",
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAyCnC,KAAK,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAQlD,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,QAAQ;IAiB5C,OAAO,CAAC,QAAQ;IAhB5B,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,QAAQ,CAAwC;IACxD,OAAO,CAAC,aAAa,CAAuC;IAC5D,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,OAA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