@dionlarson/playwright-orchestrator-mongo 1.6.4 → 1.6.5
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/mongo-db-adapter.js +6 -6
- package/package.json +29 -29
package/dist/mongo-db-adapter.js
CHANGED
|
@@ -238,17 +238,17 @@ export class MongoDbAdapter extends Adapter {
|
|
|
238
238
|
config,
|
|
239
239
|
tests: tests.map(({ file, line, column, project, status, report }) => {
|
|
240
240
|
const position = `${line}:${column}`;
|
|
241
|
-
const { duration, fails, title, lastSuccessfulRun, ema } = report;
|
|
242
241
|
return {
|
|
243
242
|
file,
|
|
244
243
|
position,
|
|
245
244
|
project,
|
|
246
245
|
status,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
// Fallback to file:position if test never ran (no report)
|
|
247
|
+
title: report?.title ?? `${file}:${position}`,
|
|
248
|
+
duration: report?.duration ?? 0,
|
|
249
|
+
fails: report?.fails ?? 0,
|
|
250
|
+
lastSuccessfulRunTimestamp: report?.lastSuccessfulRun?.getTime(),
|
|
251
|
+
averageDuration: report?.ema ?? 0,
|
|
252
252
|
};
|
|
253
253
|
}),
|
|
254
254
|
};
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"prepare": "cp ../../LICENSE.md ./"
|
|
2
|
+
"name": "@dionlarson/playwright-orchestrator-mongo",
|
|
3
|
+
"version": "1.6.5",
|
|
4
|
+
"keywords": [],
|
|
5
|
+
"author": "Rostyslav Kudrevatykh",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "Playwright orchestrator MongoDB plugin",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/dionlarson/playwright-orchestrator-private.git"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@commander-js/extra-typings": "^13.0.0",
|
|
17
|
+
"@dionlarson/playwright-orchestrator-core": "^1.3.0",
|
|
18
|
+
"commander": "^13.0.0",
|
|
19
|
+
"mongodb": "^6.12.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {},
|
|
22
|
+
"main": "dist/index.js",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"default": "./dist/index.js"
|
|
31
27
|
}
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"prepare": "cp ../../LICENSE.md ./"
|
|
31
|
+
}
|
|
32
32
|
}
|