overleaf/services/web/cypress.config.ts

28 lines
636 B
TypeScript
Raw Normal View History

import { defineConfig } from 'cypress'
import { webpackConfig } from './cypress/support/webpack.cypress'
export default defineConfig({
fixturesFolder: 'cypress/fixtures',
video: true,
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/components/**/*.spec.{js,ts,tsx}',
},
retries: {
runMode: 3,
},
})