@serenity-js/mocha 3.25.0 → 3.25.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.25.2](https://github.com/serenity-js/serenity-js/compare/v3.25.1...v3.25.2) (2024-07-17)
7
+
8
+ **Note:** Version bump only for package @serenity-js/mocha
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.25.1](https://github.com/serenity-js/serenity-js/compare/v3.25.0...v3.25.1) (2024-07-10)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **core:** all the API docs now link to the online Serenity/JS API documentation ([f8f451d](https://github.com/serenity-js/serenity-js/commit/f8f451dffdb4caaa2e31a860f59d59470f4856ad))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.25.0](https://github.com/serenity-js/serenity-js/compare/v3.24.1...v3.25.0) (2024-07-03)
7
26
 
8
27
  **Note:** Version bump only for package @serenity-js/mocha
package/README.md CHANGED
@@ -17,7 +17,7 @@ of complex software systems faster, more collaborative and easier to scale.
17
17
  👋 Join the Serenity/JS Community!
18
18
  - Meet other Serenity/JS developers and maintainers on the [Serenity/JS Community chat channel](https://matrix.to/#/#serenity-js:gitter.im),
19
19
  - Find answers to your Serenity/JS questions on the [Serenity/JS Forum](https://github.com/orgs/serenity-js/discussions/categories/how-do-i),
20
- - Learn how to [contribute to Serenity/JS](https://serenity-js.org/contributing),
20
+ - Learn how to [contribute to Serenity/JS](https://serenity-js.org/community/contributing/),
21
21
  - Support the project and gain access to [Serenity/JS Playbooks](https://github.com/serenity-js/playbooks) by becoming a [Serenity/JS GitHub Sponsor](https://github.com/sponsors/serenity-js)!
22
22
 
23
23
  ## Serenity/JS Mocha
@@ -4,10 +4,10 @@ import type { Outcome } from '@serenity-js/core/lib/model';
4
4
  import type { MochaConfig } from './MochaConfig';
5
5
  /**
6
6
  * Allows for programmatic execution of Mocha test scenarios,
7
- * using {@apilink SerenityReporterForMocha} to report progress.
7
+ * using [`SerenityReporterForMocha`](https://serenity-js.org/api/mocha/function/export=/) to report progress.
8
8
  *
9
9
  * ## Learn more
10
- * - {@apilink TestRunnerAdapter}
10
+ * - [`TestRunnerAdapter`](https://serenity-js.org/api/core-adapter/interface/TestRunnerAdapter/)
11
11
  *
12
12
  * @group Integration
13
13
  */
@@ -32,14 +32,14 @@ export declare class MochaAdapter implements TestRunnerAdapter {
32
32
  /**
33
33
  * Returns the number of loaded scenarios
34
34
  *
35
- * @throws {@apilink LogicError}
35
+ * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
36
36
  * If called before `load`
37
37
  */
38
38
  scenarioCount(): number;
39
39
  /**
40
40
  * Runs loaded test scenarios.
41
41
  *
42
- * @throws {@apilink LogicError}
42
+ * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
43
43
  * If called before `load`
44
44
  */
45
45
  run(): Promise<void>;
@@ -30,10 +30,10 @@ const fs = __importStar(require("fs"));
30
30
  const path = __importStar(require("path")); // eslint-disable-line unicorn/import-style
31
31
  /**
32
32
  * Allows for programmatic execution of Mocha test scenarios,
33
- * using {@apilink SerenityReporterForMocha} to report progress.
33
+ * using [`SerenityReporterForMocha`](https://serenity-js.org/api/mocha/function/export=/) to report progress.
34
34
  *
35
35
  * ## Learn more
36
- * - {@apilink TestRunnerAdapter}
36
+ * - [`TestRunnerAdapter`](https://serenity-js.org/api/core-adapter/interface/TestRunnerAdapter/)
37
37
  *
38
38
  * @group Integration
39
39
  */
@@ -82,7 +82,7 @@ class MochaAdapter {
82
82
  /**
83
83
  * Returns the number of loaded scenarios
84
84
  *
85
- * @throws {@apilink LogicError}
85
+ * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
86
86
  * If called before `load`
87
87
  */
88
88
  scenarioCount() {
@@ -94,7 +94,7 @@ class MochaAdapter {
94
94
  /**
95
95
  * Runs loaded test scenarios.
96
96
  *
97
- * @throws {@apilink LogicError}
97
+ * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
98
98
  * If called before `load`
99
99
  */
100
100
  run() {
@@ -38,7 +38,7 @@ export interface MochaConfig {
38
38
  /**
39
39
  * Only run tests containing this string.
40
40
  *
41
- * **Note:** {@apilink MochaConfig.fgrep} and {@apilink MochaConfig.grep} are mutually exclusive.
41
+ * **Note:** [`MochaConfig.fgrep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#fgrep) and [`MochaConfig.grep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#grep) are mutually exclusive.
42
42
  */
43
43
  fgrep?: string;
44
44
  /**
@@ -60,7 +60,7 @@ export interface MochaConfig {
60
60
  /**
61
61
  * Only run tests matching this string or regexp.
62
62
  *
63
- * **Note:** {@apilink MochaConfig.grep} and {@apilink MochaConfig.fgrep} are mutually exclusive.
63
+ * **Note:** [`MochaConfig.grep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#grep) and [`MochaConfig.fgrep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#fgrep) are mutually exclusive.
64
64
  */
65
65
  grep?: string | RegExp;
66
66
  /**
@@ -68,7 +68,7 @@ export interface MochaConfig {
68
68
  */
69
69
  growl?: boolean;
70
70
  /**
71
- * Inverts {@apilink MochaConfig.grep} and {@apilink MochaConfig.fgrep} matches.
71
+ * Inverts [`MochaConfig.grep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#grep) and [`MochaConfig.fgrep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#fgrep) matches.
72
72
  */
73
73
  invert?: boolean;
74
74
  /**
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { MochaOptions, Runner } from 'mocha';
2
2
  import { SerenityReporterForMocha } from './SerenityReporterForMocha';
3
3
  /**
4
- * Registers a Mocha reporter that emits {@apilink DomainEvent|Serenity/JS domain events}
4
+ * Registers a Mocha reporter that emits [Serenity/JS domain events](https://serenity-js.org/api/core-events/class/DomainEvent/)
5
5
  * and informs Serenity/JS when a test scenario starts, finishes, and with what result.
6
6
  */
7
7
  declare function bootstrap(runner: Runner, options?: MochaOptions): SerenityReporterForMocha;
package/lib/index.js CHANGED
@@ -3,7 +3,7 @@ const core_1 = require("@serenity-js/core");
3
3
  const io_1 = require("@serenity-js/core/lib/io");
4
4
  const SerenityReporterForMocha_1 = require("./SerenityReporterForMocha");
5
5
  /**
6
- * Registers a Mocha reporter that emits {@apilink DomainEvent|Serenity/JS domain events}
6
+ * Registers a Mocha reporter that emits [Serenity/JS domain events](https://serenity-js.org/api/core-events/class/DomainEvent/)
7
7
  * and informs Serenity/JS when a test scenario starts, finishes, and with what result.
8
8
  */
9
9
  function bootstrap(runner, options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@serenity-js/mocha",
3
- "version": "3.25.0",
4
- "description": "Serenity/JS adapter for Mocha",
3
+ "version": "3.25.2",
4
+ "description": "Serenity/JS test runner adapter for Mocha, enabling the use of the Screenplay Pattern in Mocha-based test suites and leveraging Serenity/JS reporting capabilities",
5
5
  "author": {
6
6
  "name": "Jan Molak",
7
7
  "email": "jan.molak@smartcodeltd.co.uk",
@@ -44,7 +44,7 @@
44
44
  "node": "^16.13 || ^18.12 || ^20"
45
45
  },
46
46
  "dependencies": {
47
- "@serenity-js/core": "3.25.0"
47
+ "@serenity-js/core": "3.25.2"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "mocha": "^10.6.0"
@@ -59,5 +59,5 @@
59
59
  "ts-node": "10.9.2",
60
60
  "typescript": "5.2.2"
61
61
  },
62
- "gitHead": "22657b685b6002f75b2569db54f4bea31ab91d12"
62
+ "gitHead": "98b68da1e04a8fcbb255dca509b7bc9c322a3b6b"
63
63
  }
@@ -11,10 +11,10 @@ import type Mocha = require('mocha');
11
11
 
12
12
  /**
13
13
  * Allows for programmatic execution of Mocha test scenarios,
14
- * using {@apilink SerenityReporterForMocha} to report progress.
14
+ * using [`SerenityReporterForMocha`](https://serenity-js.org/api/mocha/function/export=/) to report progress.
15
15
  *
16
16
  * ## Learn more
17
- * - {@apilink TestRunnerAdapter}
17
+ * - [`TestRunnerAdapter`](https://serenity-js.org/api/core-adapter/interface/TestRunnerAdapter/)
18
18
  *
19
19
  * @group Integration
20
20
  */
@@ -75,7 +75,7 @@ export class MochaAdapter implements TestRunnerAdapter {
75
75
  /**
76
76
  * Returns the number of loaded scenarios
77
77
  *
78
- * @throws {@apilink LogicError}
78
+ * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
79
79
  * If called before `load`
80
80
  */
81
81
  scenarioCount(): number {
@@ -89,7 +89,7 @@ export class MochaAdapter implements TestRunnerAdapter {
89
89
  /**
90
90
  * Runs loaded test scenarios.
91
91
  *
92
- * @throws {@apilink LogicError}
92
+ * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/)
93
93
  * If called before `load`
94
94
  */
95
95
  run(): Promise<void> {
@@ -45,7 +45,7 @@ export interface MochaConfig {
45
45
  /**
46
46
  * Only run tests containing this string.
47
47
  *
48
- * **Note:** {@apilink MochaConfig.fgrep} and {@apilink MochaConfig.grep} are mutually exclusive.
48
+ * **Note:** [`MochaConfig.fgrep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#fgrep) and [`MochaConfig.grep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#grep) are mutually exclusive.
49
49
  */
50
50
  fgrep?: string;
51
51
 
@@ -72,7 +72,7 @@ export interface MochaConfig {
72
72
  /**
73
73
  * Only run tests matching this string or regexp.
74
74
  *
75
- * **Note:** {@apilink MochaConfig.grep} and {@apilink MochaConfig.fgrep} are mutually exclusive.
75
+ * **Note:** [`MochaConfig.grep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#grep) and [`MochaConfig.fgrep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#fgrep) are mutually exclusive.
76
76
  */
77
77
  grep?: string | RegExp;
78
78
 
@@ -82,7 +82,7 @@ export interface MochaConfig {
82
82
  growl?: boolean;
83
83
 
84
84
  /**
85
- * Inverts {@apilink MochaConfig.grep} and {@apilink MochaConfig.fgrep} matches.
85
+ * Inverts [`MochaConfig.grep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#grep) and [`MochaConfig.fgrep`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/#fgrep) matches.
86
86
  */
87
87
  invert?: boolean;
88
88
 
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import type { MochaOptions, Runner } from 'mocha';
5
5
  import { SerenityReporterForMocha } from './SerenityReporterForMocha';
6
6
 
7
7
  /**
8
- * Registers a Mocha reporter that emits {@apilink DomainEvent|Serenity/JS domain events}
8
+ * Registers a Mocha reporter that emits [Serenity/JS domain events](https://serenity-js.org/api/core-events/class/DomainEvent/)
9
9
  * and informs Serenity/JS when a test scenario starts, finishes, and with what result.
10
10
  */
11
11
  function bootstrap(runner: Runner, options?: MochaOptions): SerenityReporterForMocha {