Skip to content

Troubleshooting

Liam Defty edited this page Nov 4, 2020 · 3 revisions

Babel config

A common issue we have ran into are issues with an existing babel config in a project folder. This may present itself in different ways but a common scenario is issues with the package core-js. There is an open issue for this documented on the Cypress repo https://github.com/cypress-io/cypress/issues/2945.

A quick fix until Cypress look into this is to provide an empty babel config in babel.config.js when the cypress process is running:

babel.config.js
module.exports = process.env.CYPRESS_INTERNAL_ENV
  ? {}
  : {
    presets,
    plugins,
  };

Docker File Sharing on Mac

You need to enable file sharing to allow local directories on the Mac to be shared with Linux containers. See more https://docs.docker.com/docker-for-mac/#file-sharing

Cypress Preprocessor

If you are using a plugin that uses the cypress pre processor, you will not be able to specify multiple versions of WordPress to run tests against. We are working on a fix for this but until then the workaround is to stick to a single WordPress version.