2022-06-08 03:39:09 -04:00
|
|
|
import { defineConfig } from 'cypress'
|
|
|
|
import { webpackConfig } from './cypress/support/webpack.cypress'
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
fixturesFolder: 'cypress/fixtures',
|
2023-01-05 05:18:41 -05:00
|
|
|
video: !!process.env.CI,
|
2022-07-29 04:18:50 -04:00
|
|
|
screenshotsFolder: 'cypress/results',
|
|
|
|
videosFolder: 'cypress/results',
|
2022-06-08 03:39:09 -04:00
|
|
|
viewportHeight: 800,
|
|
|
|
viewportWidth: 800,
|
|
|
|
component: {
|
|
|
|
devServer: {
|
|
|
|
framework: 'react',
|
|
|
|
bundler: 'webpack',
|
|
|
|
webpackConfig,
|
|
|
|
},
|
|
|
|
setupNodeEvents(on, config) {
|
|
|
|
//
|
|
|
|
},
|
2023-03-20 06:14:49 -04:00
|
|
|
specPattern:
|
|
|
|
process.env.CYPRESS_SPEC_PATTERN ||
|
2023-09-28 11:32:24 -04:00
|
|
|
'./{test,modules/**/test}/frontend/**/*.spec.{js,jsx,ts,tsx}',
|
2023-05-10 07:32:13 -04:00
|
|
|
excludeSpecPattern: process.env.CYPRESS_EXCLUDE_SPEC_PATTERN,
|
2022-06-08 03:39:09 -04:00
|
|
|
},
|
2022-06-28 07:03:07 -04:00
|
|
|
retries: {
|
|
|
|
runMode: 3,
|
|
|
|
},
|
2022-06-08 03:39:09 -04:00
|
|
|
})
|