Skip to content

Commit

Permalink
fix(cypress/react): disable react-refresh for craco setups (#18517)
Browse files Browse the repository at this point in the history
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
  • Loading branch information
mohatt and elevatebart committed Oct 19, 2021
1 parent 28e7807 commit ea10795
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions npm/react/plugins/craco/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const { createWebpackDevConfig } = require('@craco/craco')
const { getLegacyDevServer } = require('../utils/legacy-setup-dev-server')

function devServer (cypressDevServerConfig, cracoConfig) {
process.env.FAST_REFRESH = 'false'

return startDevServer({
options: cypressDevServerConfig,
webpackConfig: createWebpackDevConfig(cracoConfig),
Expand Down

3 comments on commit ea10795

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ea10795 Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/8.7.0/circle-develop-ea1079559473fc672b5e0e188b5b54bf8ebe2f98/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ea10795 Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/8.7.0/appveyor-develop-ea1079559473fc672b5e0e188b5b54bf8ebe2f98/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ea10795 Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/8.7.0/appveyor-develop-ea1079559473fc672b5e0e188b5b54bf8ebe2f98/cypress.tgz

Please sign in to comment.