mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 13:20:59 +00:00
3a071c247a
[web] run core and module cypress tests in parallel GitOrigin-RevId: d71fb94d05a8c554623e401bec8fffca5417177b
28 lines
679 B
TypeScript
28 lines
679 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}',
|
|
},
|
|
retries: {
|
|
runMode: 3,
|
|
},
|
|
})
|