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
npm install @serenity-js/jasmine










@serenity-js/jasmine brings full Serenity reporting capabilities to Jasmine and enables writing tests using the Screenplay Pattern.
- Supports Jasmine 5.x and 6.x
- Enables Screenplay Pattern APIs in Jasmine tests
- Supports all Serenity/JS reporting features
- TypeScript-first design with strong typing for safer and more predictable test code.
``sh`
npm install --save-dev @serenity-js/core @serenity-js/console-reporter @serenity-js/jasmine
See the Serenity/JS Installation Guide.
`typescript
import 'jasmine';
import { actorCalled } from '@serenity-js/core';
describe('Example Test', () => {
it('supports actors', async () => {
await actorCalled('Alice').attemptsTo(
// Add tasks and interactions here
)
})
})
`
Explore practical examples and in-depth explanations in the Serenity/JS Handbook.
``
jasmine --reporter=@serenity-js/jasmine
`typescript
import serenityReporterForJasmine = require('@serenity-js/jasmine')
jasmine.getEnv().addReporter(serenityReporterForJasmine({ specDirectory: 'tests' }))
``
- API Reference
- Screenplay Pattern Guide
- Serenity/JS Project Templates
- Tutorial: First Web Scenario
- Tutorial: First API Scenario
Contributions of all kinds are welcome! Get started with the Contributing Guide.
- Community Chat
- Discussions Forum
- Visit the 💡How to... ? section for answers to common questions
If you enjoy using Serenity/JS, make sure to star ⭐️ Serenity/JS on GitHub to help others discover the framework!
The Serenity/JS code base is licensed under the Apache-2.0 license,
while its documentation and the Serenity/JS Handbook are licensed under the Creative Commons BY-NC-SA 4.0 International.
See the Serenity/JS License.
Support ongoing development through GitHub Sponsors. Sponsors gain access to Serenity/JS Playbooks
and priority help in the Discussions Forum.
For corporate sponsorship or commercial support, please contact Jan Molak.
