# @wdio/jasmine-framework

> A WebdriverIO plugin. Adapter for Jasmine testing framework.

Latest version **10.2.0** (published 2026-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wdio/jasmine-framework
pnpm add @wdio/jasmine-framework
yarn add @wdio/jasmine-framework
bun add @wdio/jasmine-framework
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.2.0 |
| Published | 2026-11-06 |
| First published | 2018-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=22.23.4 <23 \|\| >=24.22.1 <25 \|\| >=26.12.1 |
| Dependencies | 7 |
| Unpacked size | 59.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 9884 |
| Author | Christian Bromann |
| Maintainers | christian-bromann, wdio-user, wswebcreation-nl |
| Keywords | jasmine, webdriverio, wdio, wdio-plugin, wdio-framework, webdriver |

## Links

- npm: https://www.npmjs.com/package/@wdio/jasmine-framework
- Repository: https://github.com/webdriverio/webdriverio
- Homepage: https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-jasmine-framework
- Issues: https://github.com/webdriverio/webdriverio/issues
- npm.io page: https://npm.io/package/@wdio/jasmine-framework

## Dependencies (7)

- [jasmine](https://npm.io/package/jasmine.md) ^6.3.0
- [@types/node](https://npm.io/package/@types/node.md) ^22.20.4
- [@wdio/types](https://npm.io/package/@wdio/types.md) 10.2.0
- [@wdio/utils](https://npm.io/package/@wdio/utils.md) 10.2.0
- [@wdio/logger](https://npm.io/package/@wdio/logger.md) 10.2.0
- [@wdio/globals](https://npm.io/package/@wdio/globals.md) 10.2.0
- [@types/jasmine](https://npm.io/package/@types/jasmine.md) ^6.0.0

## Recent versions

- 10.2.0 (latest) — 2026-11-06
- 9.33.1 (v9) — 2026-11-03
- 10.2.0-alpha.100.sha-b38abd894 (next) — 2026-10-31
- 8.46.0 (v8) — 2025-08-11
- 7.40.0 (v7) — 2024-12-18
- 7.0.0-beta.4 (beta) — 2021-02-09
- 5.23.0 (latest-5) — 2020-05-25
- 10.1.0 — 2026-10-18
- 10.0.2 — 2026-10-08
- 10.1.0-alpha.30 — 2026-10-07
- 10.1.0-alpha.29 — 2026-10-07
- 10.0.1 — 2026-10-07
- 10.1.0-alpha.26 — 2026-10-06
- 10.0.0 — 2026-10-05
- 10.0.0-alpha.175 — 2026-10-04
- … 537 more at https://npm.io/package/@wdio/jasmine-framework/versions

## README

WDIO Jasmine Framework Adapter
==============================

> A WebdriverIO plugin. Adapter for Jasmine testing framework.

## Installation

The easiest way is to keep `@wdio/jasmine-framework` as a devDependency in your `package.json`, via:

```sh
npm install @wdio/jasmine-framework --save-dev
```

Instructions on how to install `WebdriverIO` can be found [here.](https://webdriver.io/docs/gettingstarted)

## Configuration

Following code shows the default wdio test runner configuration...

```ts
// wdio.conf.ts
export const config = {
    // ...
    framework: 'jasmine',
    jasmineOpts: {
        defaultTimeoutInterval: 60000
    },
    // ...
}
```

## Assertions

The global `expect` combines Jasmine's matchers and the WebdriverIO matchers. Jasmine's sync matchers and the matchers of `jasmine.addMatchers` return `undefined`. WebdriverIO matchers, Jasmine's async matchers and the matchers of `jasmine.addAsyncMatchers` return a promise, so `await` them:

```js
expect([1, 2]).toHaveSize(2)                                   // Jasmine, sync
await expect($('#logo')).toHaveSize({ width: 32, height: 32 }) // WebdriverIO, async
```

For TypeScript, add `jasmine` to `types` in your `tsconfig.json`:

```json
{
    "compilerOptions": {
        "types": ["node", "jasmine", "@wdio/globals/types", "@wdio/jasmine-framework"]
    }
}
```

See [Using Jasmine](https://webdriver.io/docs/frameworks#assertions) for the details.

## `jasmineOpts` Options

### defaultTimeoutInterval

<Option type="Number" default="60000">

Timeout until specs will be marked as failed.

</Option>

### expectationResultHandler

<Option type="Function" default="null">

Called with `(passed, assertion)` for each expectation, for example to take a screenshot every time
an expectation fails. If the function throws for a passed expectation, the expectation fails with that error.

</Option>

### grep

<Option type="RegExp | string" default="undefined">

Optional pattern to selectively select it/describe cases to run from spec files.

</Option>

### invertGrep

<Option type="Boolean" default="false">

Inverts 'grep' matches.

</Option>

### cleanStack

<Option type="Boolean" default="true">

Clean up stack trace and remove all traces of node module packages.

</Option>

### random

<Option type="Boolean" default="false">

Run specs in semi-random order. Jasmine's own default is `true`, but WebdriverIO runs the specs in order unless you set this option.

</Option>

### stopOnSpecFailure

<Option type="Boolean" default="false">

Stop the spec file at its first failed spec (`it`): the other specs of the file do not run, also in other `describe` blocks. Other spec files run in their own workers and continue.

</Option>

### oneFailurePerSpec

<Option type="Boolean" default="false">

Stop a spec at its first failed expectation. A failed sync matcher stops the spec at once, and an awaited async matcher stops it when its promise settles.

</Option>

### failSpecWithNoExpectations

<Option type="Boolean" default="false">

Fail a spec that ran no expectations. By default, such a spec passes.

</Option>

### specFilter

<Option type="Function" default="undefined">

Function that selects the specs to run. When you set it, `grep` and `invertGrep` have no effect.

</Option>

### requires

<Option type="String[]" default="[]">

Require modules prior to requiring any helper or spec files.

</Option>

### helpers

<Option type="String[]" default="[]">

Require helper files prior to requiring any spec files.

</Option>
----

For more information on WebdriverIO see the [homepage](https://webdriver.io).

---
_Source: https://npm.io/package/@wdio/jasmine-framework · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
