Skip to content

vitest-community/vitest-webdriverio

Repository files navigation

@vitest/browser-webdriverio

NPM version

Run your Vitest browser tests using the webdriverio API. Note that Vitest does not use webdriverio as a test runner, but only as a browser provider.

We recommend using this package if you are already using webdriverio in your project.

Note

This is a community-maintained provider. It lives in the vitest-community organization and is released independently from the core Vitest packages. Issues and pull requests for the webdriverio provider should be opened here, not on the main vitest-dev/vitest repository.

Installation

Install the package with your favorite package manager:

npm install -D @vitest/browser-webdriverio
# or
yarn add -D @vitest/browser-webdriverio
# or
pnpm add -D @vitest/browser-webdriverio

Then specify it in the browser.provider field of your Vitest configuration:

// vitest.config.ts
import { webdriverio } from '@vitest/browser-webdriverio'
import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    browser: {
      provider: webdriverio({
        // ...custom webdriverio options
      }),
      instances: [
        { browser: 'chrome' },
      ],
    },
  },
})

Then run Vitest in the browser mode:

npx vitest --browser

Contributing

See CONTRIBUTING.md for local development, the build setup, the test suite, and the release process.

License

MIT

GitHub | Documentation

About

webdriverio support for Vitest's Browser Mode

Resources

License

Contributing

Stars

4 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors