@kinora/reporter 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +6 -6
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import process from "node:process";
3
- import { DEFAULT_KINORA_URL, IngestError, createIngestClient, isTraceAttachment, makeTestKey } from "@kinora/core";
3
+ import { DEFAULT_KINORA_URL, IngestError, createIngestClient, effectiveAttachments, isTraceAttachment, makeTestKey } from "@kinora/core";
4
4
  //#region src/index.ts
5
5
  function identity(test) {
6
6
  let file = "";
@@ -48,7 +48,7 @@ function toNormTest(test) {
48
48
  stack: e.stack,
49
49
  location: e.location
50
50
  }] : []),
51
- attachments: (last?.attachments ?? []).map((a) => ({
51
+ attachments: effectiveAttachments(test.results).map((a) => ({
52
52
  name: a.name,
53
53
  contentType: a.contentType,
54
54
  path: a.path,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kinora/reporter",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "description": "Playwright reporter that uploads test results to a kinora server",
6
6
  "author": "Joris Gallot",
7
7
  "license": "MIT",
@@ -36,13 +36,13 @@
36
36
  "@playwright/test": ">=1.40.0"
37
37
  },
38
38
  "dependencies": {
39
- "@kinora/core": "0.1.1"
39
+ "@kinora/core": "0.1.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@playwright/test": "^1.60.0",
43
- "@types/node": "^24.12.3",
44
- "tsdown": "^0.22.2",
45
- "typescript": "~6.0.2"
42
+ "@playwright/test": "^1.61.0",
43
+ "@types/node": "^26.0.0",
44
+ "tsdown": "^0.22.3",
45
+ "typescript": "~6.0.3"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsdown",