2024-04-29 09:32:14 +03:00
|
|
|
import { defineConfig } from 'cypress';
|
2024-06-03 06:20:45 +03:00
|
|
|
import registerCodeCoverageTasks from '@cypress/code-coverage/task';
|
2024-04-29 09:32:14 +03:00
|
|
|
|
|
|
|
export default defineConfig({
|
2024-06-03 06:20:45 +03:00
|
|
|
env: {
|
|
|
|
codeCoverage: {
|
|
|
|
exclude: ['cypress/**/*.*', '**/__tests__/**/*.*', '**/*.test.*'],
|
|
|
|
},
|
|
|
|
},
|
2024-04-29 09:32:14 +03:00
|
|
|
component: {
|
|
|
|
devServer: {
|
|
|
|
framework: 'react',
|
|
|
|
bundler: 'vite',
|
|
|
|
},
|
2024-06-03 06:20:45 +03:00
|
|
|
setupNodeEvents(on, config) {
|
|
|
|
registerCodeCoverageTasks(on, config);
|
|
|
|
return config;
|
|
|
|
},
|
|
|
|
supportFile: 'cypress/support/component.ts',
|
2024-04-29 09:32:14 +03:00
|
|
|
},
|
|
|
|
retries: {
|
|
|
|
// Configure retry attempts for `cypress run`
|
|
|
|
// Default is 0
|
|
|
|
runMode: 2,
|
|
|
|
// Configure retry attempts for `cypress open`
|
|
|
|
// Default is 0
|
|
|
|
openMode: 0,
|
|
|
|
},
|
|
|
|
});
|