overleaf/services/web/cypress.config.ts
Alf Eaton f8ddacafd0 Merge pull request #10217 from overleaf/ae-cypress-spec-pattern
Update the pattern for matching Cypress test files

GitOrigin-RevId: d41cafe0468da5b124286f2413b065f650241b7e
2022-10-31 09:04:19 +00:00

26 lines
619 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/**/*.spec.{js,ts,tsx}',
},
retries: {
runMode: 3,
},
})