Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'retries') on CI action #11

Open
dlpigpen opened this issue Jan 11, 2023 · 1 comment

Comments

@dlpigpen
Copy link

dlpigpen commented Jan 11, 2023

I tried to run the library on CI but got the error. It worked well on local machine

The error was thrown while executing your e2e.setupNodeEvents() function:
TypeError: Cannot read properties of undefined (reading 'retries')

This is my config not sure why:

import { defineConfig } from 'cypress';

export default defineConfig({
  //   fileServerFolder: '.',
  fixturesFolder: './src/fixtures',
  modifyObstructiveCode: false,
  video: false,
  videosFolder: '../../dist/cypress/apps/demo-e2e/videos',
  screenshotsFolder: '../../dist/cypress/apps/demo-e2e/screenshots',
  chromeWebSecurity: true,
  taskTimeout: 60000,
  env: {
    PRIVATE_KEY_WITH_FUNDS: '0x',
  },
  e2e: {
    setupNodeEvents(on, config) {
      // implement node event listeners here
      return require('./src/plugins/index.ts')(on, config);
    },
    baseUrl: 'http://localhost:4200',
    specPattern: './src/integration/**/*.cy.{js,jsx,ts,tsx}',
    supportFile: './src/support/index.ts',
    defaultCommandTimeout: 3000,
  },
});

@dlpigpen
Copy link
Author

any comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant