overleaf/services/web/cypress.config.ts
ilkin-overleaf 6452f73aab Merge pull request #9050 from overleaf/ii-cypress-artifacts
Upload cypress artifacts to Google bucket

GitOrigin-RevId: e43ab9259f2cd4030d5edbf35825251bc2804e45
2022-08-01 08:03:19 +00:00

27 lines
636 B
TypeScript

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,
},
})