allure-playwright 3.6.0 → 3.7.1

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,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import type { FullConfig } from "@playwright/test";
3
4
  import type { FullResult, TestResult as PlaywrightTestResult, Suite, TestCase, TestError, TestStep } from "@playwright/test/reporter";
4
5
  import type { ReporterConfig } from "allure-js-commons/sdk/reporter";
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import type { AttachmentOptions, ParameterMode } from "allure-js-commons";
3
4
  import { type RuntimeMessage } from "allure-js-commons/sdk";
4
5
  import { MessageTestRuntime } from "allure-js-commons/sdk/runtime";
@@ -1,6 +1,6 @@
1
1
  import type { TestStatus } from "@playwright/test";
2
2
  import type { TestStep } from "@playwright/test/reporter";
3
- import { Status } from "allure-js-commons";
3
+ import { Status, type StatusDetails, type StepResult } from "allure-js-commons";
4
4
  export declare const AFTER_HOOKS_ROOT_STEP_TITLE = "After Hooks";
5
5
  export declare const BEFORE_HOOKS_ROOT_STEP_TITLE = "Before Hooks";
6
6
  export declare const statusToAllureStats: (status: TestStatus, expectedStatus: TestStatus) => Status;
@@ -10,3 +10,13 @@ export declare const isBeforeHookStep: (step: TestStep) => boolean;
10
10
  export declare const diffEndRegexp: RegExp;
11
11
  export declare const normalizeHookTitle: (title: string) => string;
12
12
  export declare const normalizeAttachStepTitle: (title: string) => string;
13
+ export declare const getSkipAnnotation: (step: Pick<TestStep, "annotations">) => {
14
+ type: string;
15
+ description?: string | undefined;
16
+ location?: import("@playwright/test").Location | undefined;
17
+ } | undefined;
18
+ export declare const getStepStatusData: (step: Pick<TestStep, "annotations" | "error">, nestedStatus?: Status) => {
19
+ status: Status;
20
+ statusDetails?: StatusDetails;
21
+ };
22
+ export declare const finalizeStepResult: (stepResult: StepResult, step: Pick<TestStep, "annotations" | "error">) => void;
package/package.json CHANGED
@@ -1,29 +1,34 @@
1
1
  {
2
2
  "name": "allure-playwright",
3
- "version": "3.6.0",
3
+ "version": "3.7.1",
4
4
  "description": "Allure Playwright integration",
5
5
  "keywords": [
6
6
  "allure",
7
- "playwright",
8
7
  "html",
9
- "test",
8
+ "playwright",
10
9
  "report",
11
10
  "reporter",
11
+ "test",
12
12
  "testing",
13
13
  "testops"
14
14
  ],
15
15
  "homepage": "https://allurereport.org/",
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/allure-framework/allure-js.git",
19
- "directory": "packages/allure-playwright"
20
- },
21
16
  "license": "Apache-2.0",
22
17
  "author": {
23
18
  "name": "Qameta Software",
24
19
  "email": "allure@qameta.io",
25
20
  "url": "https://qameta.io/"
26
21
  },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/allure-framework/allure-js.git",
25
+ "directory": "packages/allure-playwright"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "main": "./dist/cjs/index.js",
31
+ "types": "./dist/types/index.d.ts",
27
32
  "exports": {
28
33
  ".": {
29
34
  "types": "./dist/types/index.d.ts",
@@ -41,11 +46,6 @@
41
46
  "default": "./dist/cjs/autoconfig.js"
42
47
  }
43
48
  },
44
- "main": "./dist/cjs/index.js",
45
- "types": "./dist/types/index.d.ts",
46
- "files": [
47
- "dist"
48
- ],
49
49
  "scripts": {
50
50
  "allure-report": "allure serve ./out/allure-results",
51
51
  "clean": "rimraf ./dist ./out",
@@ -55,13 +55,13 @@
55
55
  "compile:types": "tsc",
56
56
  "compile:fixup": "node ./scripts/fixup.mjs",
57
57
  "generate-report": "allure generate ./out/allure-results -o ./out/allure-report --clean",
58
- "lint": "eslint ./src ./test --ext .ts",
59
- "lint:fix": "eslint ./src ./test --ext .ts --fix",
58
+ "lint": "oxlint --import-plugin src test",
59
+ "lint:fix": "oxlint --import-plugin --fix src test",
60
60
  "pretest": "run-p clean compile",
61
61
  "test": "vitest run"
62
62
  },
63
63
  "dependencies": {
64
- "allure-js-commons": "3.6.0"
64
+ "allure-js-commons": "3.7.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@babel/cli": "^7.28.0",
@@ -70,22 +70,11 @@
70
70
  "@babel/preset-env": "^7.28.0",
71
71
  "@babel/preset-typescript": "^7.27.1",
72
72
  "@playwright/test": "^1.56.1",
73
- "@stylistic/eslint-plugin": "^2.6.1",
74
73
  "@types/babel__core": "^7.20.5",
75
74
  "@types/babel__preset-env": "^7.10.0",
76
- "@types/eslint": "^8.56.11",
77
- "@types/node": "^20.14.2",
78
- "@typescript-eslint/eslint-plugin": "^8.0.0",
79
- "@typescript-eslint/parser": "^8.0.0",
75
+ "@types/node": "^20.19.0",
80
76
  "allure-commandline": "^2.29.0",
81
- "allure-vitest": "3.6.0",
82
- "eslint": "^8.57.0",
83
- "eslint-config-prettier": "^10.0.0",
84
- "eslint-plugin-import": "^2.29.1",
85
- "eslint-plugin-jsdoc": "^54.0.0",
86
- "eslint-plugin-n": "^17.10.1",
87
- "eslint-plugin-no-null": "^1.0.2",
88
- "eslint-plugin-prefer-arrow": "^1.2.3",
77
+ "allure-vitest": "3.7.1",
89
78
  "glob": "^11.1.0",
90
79
  "npm-run-all2": "^8.0.0",
91
80
  "rimraf": "^6.0.0",