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