overleaf/services/web/cypress.config.ts
Alf Eaton 2bd7bb449f Merge pull request #8523 from overleaf/jpa-cypress-retries
[web] enable 3 retries for all cypress tests

GitOrigin-RevId: 9624baeae66cfcf770986920250a11284787f51d
2022-06-24 08:03:56 +00:00

23 lines
595 B
TypeScript

import { defineConfig } from 'cypress'
import { webpackConfig } from './cypress/support/webpack.cypress'
export default defineConfig({
fixturesFolder: 'cypress/fixtures',
video: false,
viewportHeight: 800,
viewportWidth: 800,
component: {
devServer: {
framework: 'react',
bundler: 'webpack',
webpackConfig,
},
setupNodeEvents(on, config) {
//
},
specPattern:
'./{test,modules/**/test}/frontend/components/**/*.spec.{js,ts,tsx}',
},
// Docs: https://docs.cypress.io/guides/guides/test-retries#Global-Configuration
retries: 3,
})