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