AppFlowy/frontend/appflowy_web_app/cypress.config.ts
Kilu.He 939e28d2e1
feat: support tab and shift+tab on range (#6703)
* feat: support tab and shift+tab on range

* feat: add login to no found page
2024-11-04 14:14:16 +08:00

34 lines
856 B
TypeScript

import { defineConfig } from 'cypress';
import registerCodeCoverageTasks from '@cypress/code-coverage/task';
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin';
export default defineConfig({
env: {
codeCoverage: {
exclude: ['cypress/**/*.*', '**/__tests__/**/*.*', '**/*.test.*'],
},
},
watchForFileChanges: false,
component: {
devServer: {
framework: 'react',
bundler: 'vite',
},
setupNodeEvents (on, config) {
registerCodeCoverageTasks(on, config);
addMatchImageSnapshotPlugin(on, config);
return config;
},
supportFile: 'cypress/support/component.ts',
},
retries: {
// Configure retry attempts for `cypress run`
// Default is 0
runMode: 10,
// Configure retry attempts for `cypress open`
// Default is 0
openMode: 0,
},
});