/ cypress.config.ts
cypress.config.ts
 1  import { defineConfig } from 'cypress';
 2  
 3  export default defineConfig({
 4    viewportWidth: 1000,
 5    viewportHeight: 800,
 6    defaultCommandTimeout: 40000,
 7    pageLoadTimeout: 120000,
 8    video: true,
 9    watchForFileChanges: false,
10    scrollBehavior: 'center',
11    retries: {
12      runMode: 1,
13      openMode: 0,
14    },
15    e2e: {
16      // We've imported your old cypress plugins here.
17      // You may want to clean this up later by importing these.
18      setupNodeEvents(on, config) {
19        // eslint-disable-next-line @typescript-eslint/no-var-requires
20        return require('./cypress/plugins/index.js')(on, config);
21      },
22    },
23  });