@dionlarson/playwright-orchestrator-file 1.6.3 → 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.
@@ -99,15 +99,16 @@ export class FileAdapter extends Adapter {
99
99
  runId,
100
100
  config,
101
101
  tests: tests.map(({ file, status, project, position, report }) => ({
102
- averageDuration: report.ema,
103
- duration: report.duration,
104
- fails: report.fails,
105
- title: report.title,
102
+ averageDuration: report?.ema ?? 0,
103
+ duration: report?.duration ?? 0,
104
+ fails: report?.fails ?? 0,
105
+ // Fallback to file:position if test never ran (no report)
106
+ title: report?.title ?? `${file}:${position}`,
106
107
  file,
107
108
  position,
108
109
  project,
109
110
  status,
110
- lastSuccessfulRunTimestamp: report.lastSuccessfulRunTimestamp,
111
+ lastSuccessfulRunTimestamp: report?.lastSuccessfulRunTimestamp,
111
112
  })),
112
113
  };
113
114
  }
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "name": "@dionlarson/playwright-orchestrator-file",
3
- "version": "1.6.3",
4
- "keywords": [],
5
- "author": "Rostyslav Kudrevatykh",
6
- "license": "Apache-2.0",
7
- "description": "Playwright orchestrator local file 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
- "proper-lockfile": "4.1.2"
20
- },
21
- "devDependencies": {
22
- "@types/proper-lockfile": "^4.1.2"
23
- },
24
- "main": "dist/index.js",
25
- "type": "module",
26
- "exports": {
27
- ".": {
28
- "default": "./dist/index.js"
29
- }
2
+ "name": "@dionlarson/playwright-orchestrator-file",
3
+ "version": "1.6.5",
4
+ "keywords": [],
5
+ "author": "Rostyslav Kudrevatykh",
6
+ "license": "Apache-2.0",
7
+ "description": "Playwright orchestrator local file 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
+ "proper-lockfile": "4.1.2"
20
+ },
21
+ "devDependencies": {
22
+ "@types/proper-lockfile": "^4.1.2"
23
+ },
24
+ "main": "dist/index.js",
25
+ "type": "module",
26
+ "exports": {
27
+ ".": {
28
+ "default": "./dist/index.js"
30
29
  }
30
+ }
31
31
  }