mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-09-11 11:15:53 +03:00
* feat: support document apply remote events * fix: add tests for database * fix: add test for filter,sort and group * fix: jest ci * fix: jest ci * fix: jest ci * fix: jest ci * fix: cypress test
30 lines
699 B
TypeScript
30 lines
699 B
TypeScript
import { defineConfig } from 'cypress';
|
|
import registerCodeCoverageTasks from '@cypress/code-coverage/task';
|
|
|
|
export default defineConfig({
|
|
env: {
|
|
codeCoverage: {
|
|
exclude: ['cypress/**/*.*', '**/__tests__/**/*.*', '**/*.test.*'],
|
|
},
|
|
},
|
|
component: {
|
|
devServer: {
|
|
framework: 'react',
|
|
bundler: 'vite',
|
|
},
|
|
setupNodeEvents(on, config) {
|
|
registerCodeCoverageTasks(on, config);
|
|
return config;
|
|
},
|
|
supportFile: 'cypress/support/component.ts',
|
|
},
|
|
retries: {
|
|
// Configure retry attempts for `cypress run`
|
|
// Default is 0
|
|
runMode: 2,
|
|
// Configure retry attempts for `cypress open`
|
|
// Default is 0
|
|
openMode: 0,
|
|
},
|
|
});
|