vue-cli-plugin-jest-puppeteer

Vue CLI 3 plugin for writing E2E tests with jest and puppeteer

Usage no npm install needed!

<script type="module">
  import vueCliPluginJestPuppeteer from 'https://cdn.skypack.dev/vue-cli-plugin-jest-puppeteer';
</script>

README

vue-cli-plugin-jest-puppeteer

In development!

This plugin configures your project with everything necessary to write E2E tests using Jest and Puppeteer:

  • adds jest, jest-puppeteer and puppeteer as dev-dependencies
  • adds the necessary config files
  • setups babel to support ES6 modules in the E2E test files
  • adds the test:e2e command to the package.json
  • adds a sample E2E test

Installation

Run the following command from your project's root folder: vue add jest-puppeteer

Adding the plugin will update your project as in:

Options (In development!)

  • e2e test folder location
  • package.json command name

Usage

Once installed, run the tests with npm run test:e2e.

Feel free to update the default settings