MCPcopy Index your code
hub / github.com/11joselu/cypress-to-playwright

github.com/11joselu/cypress-to-playwright @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
148 symbols 349 edges 38 files 0 documented · 0% updated 2y ago★ 43
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Welcome to Cypress to Playwright 👋

Version Documentation Maintenance License: MIT Twitter: 11joselu

Automatic migration from cypress to playwright

Prerequisites

  • node >=16.0.0

Install

npm install @11joselu/cypress-to-playwright -D

Usage

npx @11joselu/cypress-to-playwright <cypress_directory>

How it works

  1. It will read all js files found in the folder.
  2. It will convert each cypress command (supported ones) to the playwright version.
  3. It will write the new files in the playwright folder at the same level as the indicated folder.
  4. Follow the steps indicated in the script.

Warning

Migration is not perfect, therefore you will have to make modifications in the new code

Supported migrations

Detailed table

Author

Jose Cabrera

Contributing

Run tests

npm run test

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

License

Copyright © 2023 Jose Cabrera.

This project is MIT licensed.

Core symbols most depended-on inside this repo

format
called by 125
test/test-utils.ts
converter
called by 57
src/converter.ts
createOption
called by 35
test/test-utils.ts
createIdentifier
called by 11
src/core/converters/node-factory.ts
createPlaywrightCommand
called by 11
src/core/converters/actions.ts
createQueryAction
called by 10
src/core/is/is-cy.ts
createCallExpression
called by 6
src/core/converters/node-factory.ts
fixString
called by 5
src/core/converters/fix-string.ts

Shape

Function 141
Enum 5
Class 2

Languages

TypeScript100%

Modules by API surface

src/core/is/is-cy.ts34 symbols
src/core/converters/node-factory.ts32 symbols
src/core/converters/transform.ts18 symbols
src/command.ts11 symbols
test/command.test.ts6 symbols
src/core/is/is-hook.ts6 symbols
src/core/converters/actions.ts6 symbols
src/core/playwright.ts5 symbols
src/core/converters/validations.ts5 symbols
src/core/converters/hooks.ts4 symbols
src/core/infrastructure/in-memory-custom-command-tracker.ts3 symbols
test/test-utils.ts2 symbols

For agents

$ claude mcp add cypress-to-playwright \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page