Git Product home page Git Product logo

cypress-to-playwright's Issues

Error when trying to convert

  1. Installed package npm install @11joselu/cypress-to-playwright -D
  2. I run the command npx @11joselu/cypress-to-playwright cypress/e2e and get an error

const body = identifier(bodyProp.initializer.getText());
^

TypeError: Cannot read properties of undefined (reading 'initializer')
at Object.createRouteIntercept [as playwrightIntercept] ....../node_modules/@11joselu/cypress-to-playwright/lib/core/converters/node-factory.js:217:42)
at commands (...../node_modules/@11joselu/cypress-to-playwright/lib/core/converters/transform.js:133:24)
at visit (......./node_modules/@11joselu/cypress-to-playwright/lib/core/converters/transform.js:57:28)
at visitArrayWorker (.........\node_modules@11joselu\cypress-to-playwright\node_modules\typescript\lib\typescript.js:91402:48)
at visitNodes (......\node_modules@11joselu\cypress-to-playwright\node_modules\typescript\lib\typescript.js:91366:23)
at visitEachChildOfBlock (........\node_modules@11joselu\cypress-to-playwright\node_modules\typescript\lib\typescript.js:91792:54)
at Object.visitEachChild (........\node_modules@11joselu\cypress-to-playwright\node_modules\typescript\lib\typescript.js:91546:42)
at visit (........./node_modules/@11joselu/cypress-to-playwright/lib/core/converters/transform.js:16:27)
at visitNode (.......\node_modules@11joselu\cypress-to-playwright\node_modules\typescript\lib\typescript.js:91314:23)
at visitFunctionBody (.....\node_modules@11joselu\cypress-to-playwright\node_modules\typescript\lib\typescript.js:91510:23)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.