cypress.config.js 682 B

1234567891011121314151617181920212223242526
  1. const { defineConfig } = require('cypress');
  2. module.exports = defineConfig({
  3. viewportWidth: 1920,
  4. viewportHeight: 1080,
  5. screenshotsFolder: './integration-tests/screenshots',
  6. videosFolder: './integration-tests/videos',
  7. video: false,
  8. reporter: '../../node_modules/cypress-multi-reporters',
  9. reporterOptions: {
  10. configFile: 'reporter-config.json',
  11. },
  12. fixturesFolder: 'fixtures',
  13. defaultCommandTimeout: 30000,
  14. retries: {
  15. runMode: 1,
  16. openMode: 0,
  17. },
  18. e2e: {
  19. setupNodeEvents(on, config) {
  20. return require('./plugins/index.ts')(on, config);
  21. },
  22. specPattern: 'tests/**/*.cy.{js,jsx,ts,tsx}',
  23. supportFile: 'support/index.ts',
  24. },
  25. });