cypress.config.ts 739 B

12345678910111213141516171819202122232425262728
  1. import { defineConfig } from 'cypress'
  2. import { webpackConfig } from './cypress/support/webpack.cypress'
  3. export default defineConfig({
  4. fixturesFolder: 'cypress/fixtures',
  5. video: process.env.CYPRESS_VIDEO === 'true',
  6. screenshotsFolder: 'cypress/results',
  7. videosFolder: 'cypress/results',
  8. viewportHeight: 800,
  9. viewportWidth: 800,
  10. component: {
  11. devServer: {
  12. framework: 'react',
  13. bundler: 'webpack',
  14. webpackConfig,
  15. },
  16. setupNodeEvents(on, config) {
  17. //
  18. },
  19. specPattern:
  20. process.env.CYPRESS_SPEC_PATTERN ||
  21. './{test,modules/**/test}/frontend/**/*.spec.{js,jsx,ts,tsx}',
  22. excludeSpecPattern: process.env.CYPRESS_EXCLUDE_SPEC_PATTERN,
  23. },
  24. retries: {
  25. runMode: 3,
  26. },
  27. })