allure-playwright 3.11.1 → 3.12.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.
@@ -1,5 +1,5 @@
1
1
  import type { FullConfig } from "@playwright/test";
2
- import type { FullResult, TestResult as PlaywrightTestResult, Suite, TestCase, TestError, TestStep } from "@playwright/test/reporter";
2
+ import type { FullResult, Reporter, TestResult as PlaywrightTestResult, Suite, TestCase, TestError, TestStep } from "@playwright/test/reporter";
3
3
  import type { ReporterConfig } from "allure-js-commons/sdk/reporter";
4
4
  export interface AllurePlaywrightReporterConfig extends ReporterConfig {
5
5
  detail?: boolean;
@@ -17,8 +17,10 @@ export type AttachmentTarget = {
17
17
  hookStep?: AttachStack;
18
18
  processedAtStepEnd?: boolean;
19
19
  };
20
+ export type ReporterPreprocessParams = Parameters<NonNullable<Reporter["preprocess"]>>[0];
20
21
  export interface ReporterV2 {
21
22
  onConfigure(config: FullConfig): void;
23
+ preprocess(params: ReporterPreprocessParams): Promise<void> | void;
22
24
  onBegin(suite: Suite): void;
23
25
  onTestBegin(test: TestCase, result: PlaywrightTestResult): void;
24
26
  onStdOut(chunk: string | Buffer, test?: TestCase, result?: PlaywrightTestResult): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allure-playwright",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "description": "Allure Playwright integration",
5
5
  "keywords": [
6
6
  "allure",
@@ -61,7 +61,7 @@
61
61
  "test": "vitest run"
62
62
  },
63
63
  "dependencies": {
64
- "allure-js-commons": "3.11.1"
64
+ "allure-js-commons": "3.12.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@babel/cli": "^8.0.1",
@@ -69,12 +69,12 @@
69
69
  "@babel/plugin-transform-modules-commonjs": "^7.27.1",
70
70
  "@babel/preset-env": "^7.28.0",
71
71
  "@babel/preset-typescript": "^7.27.1",
72
- "@playwright/test": "^1.60.0",
72
+ "@playwright/test": "^1.62.0",
73
73
  "@types/babel__core": "^7.20.5",
74
74
  "@types/babel__preset-env": "^7.10.0",
75
75
  "@types/node": "^26.0.1",
76
76
  "allure-commandline": "^2.29.0",
77
- "allure-vitest": "3.11.1",
77
+ "allure-vitest": "3.12.0",
78
78
  "babel-plugin-transform-import-meta": "^2.3.3",
79
79
  "glob": "^11.1.0",
80
80
  "npm-run-all2": "^9.0.2",
@@ -83,6 +83,6 @@
83
83
  "vitest": "^4.1.10"
84
84
  },
85
85
  "peerDependencies": {
86
- "@playwright/test": ">=1.53.0"
86
+ "@playwright/test": ">=1.62.0"
87
87
  }
88
88
  }