overleaf/services/web/cypress.config.ts
Alf Eaton 054b0e2e28 Merge pull request #8583 from overleaf/ae-cypress-retries
Only retry Cypress tests in run mode

GitOrigin-RevId: e862f8e88e9fe970a5c2b9142c05d8b648ac4b1e
2022-06-29 08:04:43 +00:00

24 lines
532 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}',
},
retries: {
runMode: 3,
},
})