overleaf/services/web/cypress.config.ts
Alf Eaton 1335baa7cd Upgrade Cypress to 13.3.0 (#15162)
GitOrigin-RevId: 94cfe15bf79b45abbe9ec94cfc873c9734da434b
2023-10-10 07:57:39 +00:00

28 lines
719 B
TypeScript

import { defineConfig } from 'cypress'
import { webpackConfig } from './cypress/support/webpack.cypress'
export default defineConfig({
fixturesFolder: 'cypress/fixtures',
video: !!process.env.CI,
screenshotsFolder: 'cypress/results',
videosFolder: 'cypress/results',
viewportHeight: 800,
viewportWidth: 800,
component: {
devServer: {
framework: 'react',
bundler: 'webpack',
webpackConfig,
},
setupNodeEvents(on, config) {
//
},
specPattern:
process.env.CYPRESS_SPEC_PATTERN ||
'./{test,modules/**/test}/frontend/**/*.spec.{js,jsx,ts,tsx}',
excludeSpecPattern: process.env.CYPRESS_EXCLUDE_SPEC_PATTERN,
},
retries: {
runMode: 3,
},
})