mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 15:39:28 -05:00
fix: open browser at correct time during lifecycle (#19572)
This commit is contained in:
@@ -4,16 +4,8 @@ module.exports = {
|
||||
'viewportWidth': 500,
|
||||
'viewportHeight': 800,
|
||||
'component': {
|
||||
setupNodeEvents (on, config) {
|
||||
// load file devServer that comes with this plugin
|
||||
// https://github.com/bahmutov/cypress-react-unit-test#install
|
||||
const devServer = require('@cypress/react/plugins/react-scripts')
|
||||
|
||||
devServer(on, config)
|
||||
|
||||
// IMPORTANT to return the config object
|
||||
// with the any changed environment variables
|
||||
return config
|
||||
},
|
||||
// load file devServer that comes with this plugin
|
||||
// https://github.com/bahmutov/cypress-react-unit-test#install
|
||||
devServer: require('@cypress/react/plugins/react-scripts'),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user