cypress-jest

Jest runner for Cypress

Usage no npm install needed!

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

README

cypress-jest

npm version npm Build Status Dependency Status devDependency Status CircleCI

Jest runner for cypress.io

Usage

npm install --save-dev cypress-jest

Your jest.config.js should look like this:

module.exports = {
  projects: [
    {
      displayName: 'cypress'
      runner: 'cypress-jest',
      testMatch: ['<rootDir>/**/*-cy.js'],
    },
    {
      displayName: 'test' // Your other unit Tests with jest
    }
  ]
}

TO

  • Silence Cypress STDOUT, so we just see jest's console output

Credits

This project is inspired by the work of TheBrainFamily & DanielMSchmidt in various projects: