jest-environment-webdriver

Use Jest to run tests in Selenium WebDriver

Usage no npm install needed!

<script type="module">
  import jestEnvironmentWebdriver from 'https://cdn.skypack.dev/jest-environment-webdriver';
</script>

README

jest-environment-webdriver

Connect Jest tests to Selenium WebDriver.

npm install --save-dev jest-environment-webdriver

Usage

Set testEnvironment to jest-environment-webdriver and select target browser using testEnvironmentOptions:

"testEnvironment": "jest-environment-webdriver",
"testEnvironmentOptions": {
  "browser": "safari"
}

Environment API

Next global objects and functions are available in testing code.