@serenity-js/jasmine 3.36.2 → 3.37.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.
- package/CHANGELOG.md +19 -0
- package/README.md +64 -33
- 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.37.1](https://github.com/serenity-js/serenity-js/compare/v3.37.0...v3.37.1) (2025-12-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @serenity-js/jasmine
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.37.0](https://github.com/serenity-js/serenity-js/compare/v3.36.2...v3.37.0) (2025-12-02)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **deps:** update dependency jasmine to v5.13.0 ([9e924c0](https://github.com/serenity-js/serenity-js/commit/9e924c0458b380126245f033c5b95b96ac4ac57b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [3.36.2](https://github.com/serenity-js/serenity-js/compare/v3.36.1...v3.36.2) (2025-11-26)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @serenity-js/jasmine
|
package/README.md
CHANGED
|
@@ -1,39 +1,52 @@
|
|
|
1
|
-
# Serenity/JS
|
|
1
|
+
# Serenity/JS Jasmine
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/%40serenity-js%2Fjasmine)
|
|
4
|
+
[](https://github.com/serenity-js/serenity-js/actions)
|
|
5
|
+
[](https://qlty.sh/gh/serenity-js/projects/serenity-js)
|
|
6
|
+
[](https://qlty.sh/gh/serenity-js/projects/serenity-js)
|
|
7
|
+
[](https://github.com/serenity-js/serenity-js/graphs/contributors)
|
|
8
|
+
[](https://snyk.io/test/npm/@serenity-js/jasmine)
|
|
9
|
+
[](https://github.com/serenity-js/serenity-js)
|
|
2
10
|
|
|
3
11
|
[](https://www.linkedin.com/company/serenity-js)
|
|
4
12
|
[](https://www.youtube.com/@serenity-js)
|
|
5
13
|
[](https://matrix.to/#/#serenity-js:gitter.im)
|
|
6
14
|
[](https://github.com/sponsors/serenity-js)
|
|
7
15
|
|
|
8
|
-
[
|
|
9
|
-
of complex software systems faster, more collaborative and easier to scale.
|
|
16
|
+
[`@serenity-js/jasmine`](https://serenity-js.org/api/jasmine) brings full [Serenity reporting](https://serenity-js.org/handbook/reporting/) capabilities to [Jasmine](https://serenity-js.org/handbook/test-runners/jasmine/) and enables writing tests using the [Screenplay Pattern](https://serenity-js.org/handbook/design/screenplay-pattern/).
|
|
10
17
|
|
|
11
|
-
|
|
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)
|
|
14
|
-
- [API documentation](https://serenity-js.org/api/)
|
|
15
|
-
- [Serenity/JS Project Templates](https://serenity-js.org/handbook/project-templates/)
|
|
18
|
+
## Features
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
- Learn how to [contribute to Serenity/JS](https://serenity-js.org/community/contributing/),
|
|
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)!
|
|
20
|
+
- Enables [Screenplay Pattern](https://serenity-js.org/handbook/design/screenplay-pattern/) APIs in Jasmine tests
|
|
21
|
+
- Supports all [Serenity/JS reporting features](https://serenity-js.org/handbook/reporting/)
|
|
22
|
+
- TypeScript-first design with strong typing for safer and more predictable test code.
|
|
22
23
|
|
|
23
|
-
##
|
|
24
|
+
## Installation
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
```sh
|
|
27
|
+
npm install --save-dev @serenity-js/core @serenity-js/console-reporter @serenity-js/jasmine
|
|
28
|
+
```
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
See the [Serenity/JS Installation Guide](https://serenity-js.org/handbook/installation/).
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
## Quick Start
|
|
32
33
|
|
|
33
|
-
```
|
|
34
|
-
|
|
34
|
+
```typescript
|
|
35
|
+
import 'jasmine';
|
|
36
|
+
import { actorCalled } from '@serenity-js/core';
|
|
37
|
+
|
|
38
|
+
describe('Example Test', () => {
|
|
39
|
+
it('supports actors', async () => {
|
|
40
|
+
await actorCalled('Alice').attemptsTo(
|
|
41
|
+
// Add tasks and interactions here
|
|
42
|
+
)
|
|
43
|
+
})
|
|
44
|
+
})
|
|
35
45
|
```
|
|
36
46
|
|
|
47
|
+
Explore practical examples and in-depth explanations in the [Serenity/JS Handbook](https://serenity-js.org/handbook/).
|
|
48
|
+
|
|
49
|
+
## Reporting
|
|
37
50
|
|
|
38
51
|
### Command line usage
|
|
39
52
|
|
|
@@ -46,23 +59,41 @@ jasmine --reporter=@serenity-js/jasmine
|
|
|
46
59
|
```typescript
|
|
47
60
|
import serenityReporterForJasmine = require('@serenity-js/jasmine')
|
|
48
61
|
|
|
49
|
-
jasmine.getEnv().addReporter(serenityReporterForJasmine({ specDirectory: '
|
|
62
|
+
jasmine.getEnv().addReporter(serenityReporterForJasmine({ specDirectory: 'tests' }))
|
|
50
63
|
```
|
|
51
64
|
|
|
52
|
-
##
|
|
65
|
+
## Documentation
|
|
53
66
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
67
|
+
- [API Reference](https://serenity-js.org/api/)
|
|
68
|
+
- [Screenplay Pattern Guide](https://serenity-js.org/handbook/design/screenplay-pattern/)
|
|
69
|
+
- [Serenity/JS Project Templates](https://serenity-js.org/handbook/project-templates/)
|
|
70
|
+
- [Tutorial: First Web Scenario](https://serenity-js.org/handbook/tutorials/your-first-web-scenario/)
|
|
71
|
+
- [Tutorial: First API Scenario](https://serenity-js.org/handbook/tutorials/your-first-api-scenario/)
|
|
58
72
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
73
|
+
## Contributing
|
|
74
|
+
|
|
75
|
+
Contributions of all kinds are welcome! Get started with the [Contributing Guide](https://serenity-js.org/community/contributing/).
|
|
76
|
+
|
|
77
|
+
## Community
|
|
78
|
+
|
|
79
|
+
- [Community Chat](https://matrix.to/#/#serenity-js:gitter.im)
|
|
80
|
+
- [Discussions Forum](https://github.com/orgs/serenity-js/discussions)
|
|
81
|
+
- Visit the [💡How to... ?](https://github.com/orgs/serenity-js/discussions/categories/how-to) section for answers to common questions
|
|
82
|
+
|
|
83
|
+
If you enjoy using Serenity/JS, make sure to star ⭐️ [Serenity/JS on GitHub](https://github.com/serenity-js/serenity-js) to help others discover the framework!
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
The Serenity/JS code base is licensed under the [Apache-2.0](https://opensource.org/license/apache-2-0) license,
|
|
88
|
+
while its documentation and the [Serenity/JS Handbook](https://serenity-js.org/handbook/) are licensed under the [Creative Commons BY-NC-SA 4.0 International](https://creativecommons.org/licenses/by-nc-sa/4.0/).
|
|
89
|
+
|
|
90
|
+
See the [Serenity/JS License](https://serenity-js.org/legal/license/).
|
|
91
|
+
|
|
92
|
+
## Support
|
|
63
93
|
|
|
64
|
-
|
|
94
|
+
Support ongoing development through [GitHub Sponsors](https://github.com/sponsors/serenity-js). Sponsors gain access to [Serenity/JS Playbooks](https://github.com/serenity-js/playbooks)
|
|
95
|
+
and priority help in the [Discussions Forum](https://github.com/orgs/serenity-js/discussions).
|
|
65
96
|
|
|
66
|
-
|
|
97
|
+
For corporate sponsorship or commercial support, please contact [Jan Molak](https://www.linkedin.com/in/janmolak/).
|
|
67
98
|
|
|
68
99
|
[](https://github.com/sponsors/serenity-js)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/jasmine",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.1",
|
|
4
4
|
"description": "Serenity/JS test runner adapter for Jasmine, enabling the use of the Screenplay Pattern in Jasmine-based test suites and leveraging Serenity/JS reporting capabilities",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -75,19 +75,19 @@
|
|
|
75
75
|
"node": "^20 || ^22 || ^24"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@serenity-js/core": "3.
|
|
78
|
+
"@serenity-js/core": "3.37.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"jasmine": "^5.
|
|
81
|
+
"jasmine": "^5.13.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@integration/testing-tools": "3.0.0",
|
|
85
85
|
"@types/chai": "4.3.20",
|
|
86
86
|
"@types/mocha": "10.0.10",
|
|
87
87
|
"c8": "10.1.3",
|
|
88
|
-
"jasmine": "5.
|
|
88
|
+
"jasmine": "5.13.0",
|
|
89
89
|
"mocha": "11.7.5",
|
|
90
90
|
"mocha-multi": "1.1.7"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "0af3eff400cdb5adc9d7b92e87b09820c93d77c9"
|
|
93
93
|
}
|