First is my `cypress.config` and the second is my ...
# component-testing
w
First is my
cypress.config
and the second is my
webpack.config
Copy code
ts
import { defineConfig } from 'cypress'
import webpackConfig from './webpack.config'
import index from './cypress/plugins/index'

export default defineConfig({
  env: {
    extendedCommandTimeout: '6000',
    username: 'admin',
    password: '',
    baseUsername: 'xxx',
    basePassword: '',
  },

  scrollBehavior: 'center',

  e2e: {
    setupNodeEvents(on, config) {
      return index
    },
    baseUrl: 'https://localhost:8001/',
    experimentalSessionAndOrigin: true,
  },

  component: {
    devServer: {
      framework: 'react',
      bundler: 'webpack',
      webpackConfig,
    },
  },
})