mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-08-06 19:20:25 +08:00
30 lines
644 B
TypeScript
30 lines
644 B
TypeScript
import { defineConfig } from 'cypress';
|
|
|
|
export default defineConfig({
|
|
env: {
|
|
codeCoverage: {
|
|
exclude: ['cypress/**/*.*', '**/__tests__/**/*.*', '**/*.test.*'],
|
|
},
|
|
},
|
|
watchForFileChanges: false,
|
|
component: {
|
|
devServer: {
|
|
framework: 'react',
|
|
bundler: 'vite',
|
|
},
|
|
setupNodeEvents(on, config) {
|
|
return config;
|
|
},
|
|
supportFile: 'cypress/support/component.ts',
|
|
},
|
|
chromeWebSecurity: false,
|
|
retries: {
|
|
// Configure retry attempts for `cypress run`
|
|
// Default is 0
|
|
runMode: 10,
|
|
// Configure retry attempts for `cypress open`
|
|
// Default is 0
|
|
openMode: 0,
|
|
},
|
|
});
|