allure-codeceptjs 3.7.2 → 3.9.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.
package/README.md CHANGED
@@ -129,3 +129,17 @@ Scenario("Signing in with a correct password", async () => {
129
129
  ```
130
130
 
131
131
  More details about the API are available at [https://allurereport.org/docs/codeceptjs-reference/](https://allurereport.org/docs/codeceptjs-reference/).
132
+
133
+ ### Sync API
134
+
135
+ When your test code uses synchronous helpers or matcher integrations, you can use the sync facade from `allure-js-commons/sync`.
136
+
137
+ ```js
138
+ import * as allure from "allure-js-commons/sync";
139
+
140
+ allure.step("check result", () => {
141
+ allure.parameter("mode", "sync");
142
+ });
143
+ ```
144
+
145
+ The sync facade is strict-sync only: `allure.step()` must finish synchronously and must not return a `Promise`.
@@ -1,21 +1,19 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import type { ReporterConfig } from "allure-js-commons/sdk/reporter";
4
2
  declare const allurePlugin: (config: ReporterConfig) => {
5
3
  addAttachment: (name: string, content: Buffer | string, contentType: string) => void;
6
4
  label: (name: string, value: string) => Promise<void>;
7
- link: (type: string, url: string, name?: string | undefined) => Promise<void>;
5
+ link: (type: string, url: string, name?: string) => Promise<void>;
8
6
  parameter: (name: string, value: string, options?: {
9
- excluded?: boolean | undefined;
10
- mode?: "hidden" | "masked" | "default" | undefined;
11
- } | undefined) => Promise<void>;
7
+ excluded?: boolean;
8
+ mode?: "hidden" | "masked" | "default";
9
+ }) => Promise<void>;
12
10
  description: (markdown: string) => Promise<void>;
13
11
  descriptionHtml: (html: string) => Promise<void>;
14
12
  testCaseId: (id: string) => Promise<void>;
15
13
  historyId: (id: string) => Promise<void>;
16
14
  allureId: (id: string) => Promise<void>;
17
15
  displayName: (name: string) => Promise<void>;
18
- attachment: (name: string, content: string | Buffer, type: string) => Promise<void>;
16
+ attachment: (name: string, content: Buffer | string, type: string) => Promise<void>;
19
17
  issue: (name: string, url: string) => Promise<void>;
20
18
  tms: (name: string, url: string) => Promise<void>;
21
19
  epic: (name: string) => Promise<void>;
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  /**
4
2
  * @deprecated please use api exported by "allure-js-commons" instead.
5
3
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allure-codeceptjs",
3
- "version": "3.7.2",
3
+ "version": "3.9.0",
4
4
  "description": "Allure codeceptjs integration",
5
5
  "keywords": [
6
6
  "allure",
@@ -46,8 +46,8 @@
46
46
  "test": "vitest run"
47
47
  },
48
48
  "dependencies": {
49
- "allure-js-commons": "3.7.2",
50
- "allure-mocha": "3.7.2"
49
+ "allure-js-commons": "3.9.0",
50
+ "allure-mocha": "3.9.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@babel/cli": "^7.28.0",
@@ -59,16 +59,16 @@
59
59
  "@codeceptjs/helper": "^2.0.4",
60
60
  "@types/babel__core": "^7.20.5",
61
61
  "@types/babel__preset-env": "^7.10.0",
62
- "@types/jasmine": "^5.1.4",
62
+ "@types/jasmine": "^6.0.0",
63
63
  "@types/node": "^20.19.0",
64
64
  "allure-commandline": "^2.29.0",
65
- "allure-vitest": "3.7.2",
65
+ "allure-vitest": "3.9.0",
66
66
  "babel-plugin-add-module-exports": "^1.0.4",
67
67
  "codeceptjs": "^3.7.6-beta.1",
68
68
  "codeceptjs-expect": "^1.0.3",
69
69
  "npm-run-all2": "^8.0.0",
70
70
  "rimraf": "^6.0.0",
71
- "typescript": "^5.2.2",
71
+ "typescript": "^6.0.3",
72
72
  "vitest": "^4.0.18"
73
73
  },
74
74
  "peerDependencies": {