mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:03:43 -05:00
11716cbd05
[web] Run cypress tests for editor separately GitOrigin-RevId: f614fdb611ebd665aba08fc95efb3970c89a015e
29 lines
745 B
TypeScript
29 lines
745 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:
|
|
process.env.CYPRESS_SPEC_PATTERN ||
|
|
'./{test,modules/**/test}/frontend/**/*.spec.{js,ts,tsx}',
|
|
excludeSpecPattern: process.env.CYPRESS_EXCLUDE_SPEC_PATTERN,
|
|
},
|
|
retries: {
|
|
runMode: 3,
|
|
},
|
|
})
|