File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
examples/react-scripts/cypress/plugins Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const devServer = require('@cypress/react/plugins/react-scripts')
88 * @type {Cypress.PluginConfig }
99 */
1010module . exports = ( on , config ) => {
11- devServer ( on , config )
11+ devServer ( on , config , { } )
1212
1313 // IMPORTANT to return the config object
1414 // with the any changed environment variables
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ const { getTranspileFolders } = require('../utils/get-transpile-folders')
77const { addFolderToBabelLoaderTranspileInPlace } = require ( '../utils/babel-helpers' )
88const { reactScriptsFiveModifications, isReactScripts5 } = require ( '../../dist/react-scripts/reactScriptsFive' )
99
10- module . exports = function findReactScriptsWebpackConfig ( config , {
11- webpackConfigPath,
12- } = { webpackConfigPath : 'react-scripts/config/webpack.config' } ) {
10+ module . exports = function findReactScriptsWebpackConfig ( config , devServerOptions ) {
11+ const webpackConfigPath = ( devServerOptions && devServerOptions . webpackConfigPath )
12+ ? devServerOptions . webpackConfigPath
13+ : 'react-scripts/config/webpack.config'
14+
1315 // this is required because
1416 // 1) we use our own HMR and we don't need react-refresh transpiling overhead
1517 // 2) it doesn't work with process.env=test @see https://github.com/cypress-io/cypress-realworld-app/pull/832
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ declare module '*.vue' {
22 import { DefineComponent } from 'vue'
33 const component : DefineComponent < { } , { } , any >
44 export default component
5- }
5+ }
You can’t perform that action at this time.
0 commit comments