@serenity-js/mocha 3.10.0 → 3.10.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 +19 -0
- package/README.md +14 -13
- package/package.json +5 -5
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.10.2](https://github.com/serenity-js/serenity-js/compare/v3.10.1...v3.10.2) (2023-09-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** updated installation instruction in the README ([ec3f277](https://github.com/serenity-js/serenity-js/commit/ec3f2778334abbd7324497ceaa2df9f0560a103e)), closes [#1915](https://github.com/serenity-js/serenity-js/issues/1915)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.10.1](https://github.com/serenity-js/serenity-js/compare/v3.10.0...v3.10.1) (2023-09-01)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @serenity-js/mocha
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.10.0](https://github.com/serenity-js/serenity-js/compare/v3.9.1...v3.10.0) (2023-08-23)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @serenity-js/mocha
|
package/README.md
CHANGED
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
of complex software systems faster, more collaborative and easier to scale.
|
|
10
10
|
|
|
11
11
|
⭐️ Get started with Serenity/JS!
|
|
12
|
-
- [Serenity/JS
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
12
|
+
- [Serenity/JS web testing tutorial](https://serenity-js.org/handbook/web-testing/your-first-web-scenario)
|
|
13
|
+
- [Serenity/JS Handbook](https://serenity-js.org/handbook) and [Getting Started guides](https://serenity-js.org/handbook/getting-started/)
|
|
14
|
+
- [API documentation](https://serenity-js.org/api/core)
|
|
15
|
+
- [Serenity/JS Project Templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates)
|
|
15
16
|
|
|
16
17
|
👋 Join the Serenity/JS Community!
|
|
17
18
|
- Meet other Serenity/JS developers and maintainers on the [Serenity/JS Community chat channel](https://matrix.to/#/#serenity-js:gitter.im),
|
|
@@ -27,17 +28,17 @@ of complex software systems faster, more collaborative and easier to scale.
|
|
|
27
28
|
|
|
28
29
|
Install [Mocha](https://mochajs.org/) version 8.x or newer:
|
|
29
30
|
|
|
30
|
-
```
|
|
31
|
+
```sh
|
|
31
32
|
npm install --save-dev mocha@8.x
|
|
32
33
|
```
|
|
33
34
|
|
|
34
35
|
Install the `@serenity-js/mocha` adapter, as well as `@serenity-js/core` and any [Serenity/JS reporting modules](https://serenity-js.org/api/console-reporter/) you'd like to use, for example [`@serenity-js/console-reporter`](https://serenity-js.org/api/console-reporter/):
|
|
35
36
|
|
|
36
|
-
```
|
|
37
|
-
npm install --save-dev @serenity-js/
|
|
37
|
+
```sh
|
|
38
|
+
npm install --save-dev @serenity-js/core @serenity-js/console-reporter @serenity-js/mocha
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
To learn more about Serenity/JS and how to use it on your project, follow the [Serenity/JS Getting Started guide](https://serenity-js.org/handbook/getting-started/).
|
|
41
42
|
|
|
42
43
|
### Usage with standalone Mocha
|
|
43
44
|
|
|
@@ -59,7 +60,7 @@ configure({
|
|
|
59
60
|
crew: [
|
|
60
61
|
ConsoleReporter.forDarkTerminals(),
|
|
61
62
|
],
|
|
62
|
-
})
|
|
63
|
+
})
|
|
63
64
|
```
|
|
64
65
|
|
|
65
66
|
Next, run Mocha as follows:
|
|
@@ -95,14 +96,14 @@ Create a `setup.ts` file (for example under `spec/support/setup.ts`, but you can
|
|
|
95
96
|
```typescript
|
|
96
97
|
// spec/support/setup.ts
|
|
97
98
|
|
|
98
|
-
import { ConsoleReporter } from '@serenity-js/console-reporter'
|
|
99
|
-
import { configure } from '@serenity-js/core'
|
|
99
|
+
import { ConsoleReporter } from '@serenity-js/console-reporter'
|
|
100
|
+
import { configure } from '@serenity-js/core'
|
|
100
101
|
|
|
101
102
|
configure({
|
|
102
103
|
crew: [
|
|
103
104
|
ConsoleReporter.forDarkTerminals(),
|
|
104
105
|
],
|
|
105
|
-
})
|
|
106
|
+
})
|
|
106
107
|
```
|
|
107
108
|
|
|
108
109
|
Next, run Mocha as follows:
|
|
@@ -157,7 +158,7 @@ exports.config = {
|
|
|
157
158
|
},
|
|
158
159
|
|
|
159
160
|
// ... other Protractor-specific configuration
|
|
160
|
-
}
|
|
161
|
+
}
|
|
161
162
|
```
|
|
162
163
|
|
|
163
164
|
Learn more about supported [Mocha configuration options](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/).
|
|
@@ -187,7 +188,7 @@ export const config = {
|
|
|
187
188
|
},
|
|
188
189
|
|
|
189
190
|
// ... other Protractor-specific configuration
|
|
190
|
-
}
|
|
191
|
+
}
|
|
191
192
|
```
|
|
192
193
|
|
|
193
194
|
Learn more about supported [Mocha configuration options](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/mocha",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Serenity/JS adapter for Mocha",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
"node": "^16.13 || ^18.12 || ^20"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@serenity-js/core": "3.10.
|
|
46
|
+
"@serenity-js/core": "3.10.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"mocha": "^10.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@integration/testing-tools": "3.0.0",
|
|
53
|
-
"@types/chai": "^4.3.
|
|
53
|
+
"@types/chai": "^4.3.6",
|
|
54
54
|
"@types/mocha": "^10.0.1",
|
|
55
55
|
"c8": "8.0.1",
|
|
56
56
|
"mocha": "^10.2.0",
|
|
57
57
|
"mocha-multi": "^1.1.7",
|
|
58
58
|
"ts-node": "^10.9.1",
|
|
59
|
-
"typescript": "
|
|
59
|
+
"typescript": "5.1.6"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "6834827fffe5dd8dd3d2f39d2fea2c4039ab1d3d"
|
|
62
62
|
}
|