mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
0b14c55d24
* Upgrade Cypress to v12.2.0 * Remove cy.unmount * Only record video in CI * Remove unmount definition and @cypress/react GitOrigin-RevId: 463bc216b1debc65ad066f7c1d479724cfa062d1
26 lines
631 B
TypeScript
26 lines
631 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',
|
|
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,
|
|
},
|
|
})
|