mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
9e3e4407a1
* [web] add junit integration for Jenkins * [web] integrate junit test report for writefull into Jenkins * [web] put all the junit test results into namespaces GitOrigin-RevId: ba1ff07b5ea7bcfa97bb4d6bf7fa9e5291ab7b0f
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import { defineConfig } from 'cypress'
|
|
import { webpackConfig } from './cypress/support/webpack.cypress'
|
|
|
|
let reporterOptions = {}
|
|
if (process.env.CI) {
|
|
reporterOptions = {
|
|
reporter: '/overleaf/node_modules/cypress-multi-reporters',
|
|
reporterOptions: {
|
|
configFile: 'cypress/cypress-multi-reporters.json',
|
|
},
|
|
}
|
|
}
|
|
|
|
export default defineConfig({
|
|
fixturesFolder: 'cypress/fixtures',
|
|
video: process.env.CYPRESS_VIDEO === 'true',
|
|
screenshotsFolder: process.env.CYPRESS_RESULTS || 'cypress/results',
|
|
videosFolder: process.env.CYPRESS_RESULTS || 'cypress/results',
|
|
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,jsx,ts,tsx}',
|
|
excludeSpecPattern: process.env.CYPRESS_EXCLUDE_SPEC_PATTERN,
|
|
},
|
|
retries: {
|
|
runMode: 3,
|
|
},
|
|
...reporterOptions,
|
|
})
|