overleaf/services/web/cypress.config.ts

27 lines
631 B
TypeScript
Raw Normal View History

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',
videoUploadOnPasses: false,
viewportHeight: 800,
viewportWidth: 800,
component: {
devServer: {
framework: 'react',
bundler: 'webpack',
webpackConfig,
},
setupNodeEvents(on, config) {
//
},
specPattern: './{test,modules/**/test}/frontend/**/*.spec.{js,ts,tsx}',
},
retries: {
runMode: 3,
},
})