{"id":13534092,"url":"https://github.com/webdriverio/codemod","last_synced_at":"2026-04-07T04:31:28.508Z","repository":{"id":40778293,"uuid":"355162618","full_name":"webdriverio/codemod","owner":"webdriverio","description":"A codemod to transform Protractor into WebdriverIO tests","archived":false,"fork":false,"pushed_at":"2024-07-15T11:26:27.000Z","size":911,"stargazers_count":27,"open_issues_count":18,"forks_count":14,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-15T12:40:02.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdriverio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"tidelift":"npm/webdriverio","open_collective":"webdriverio"}},"created_at":"2021-04-06T11:23:26.000Z","updated_at":"2025-04-09T12:33:14.000Z","dependencies_parsed_at":"2024-03-19T02:01:25.726Z","dependency_job_id":"c2f0d099-b337-4a9e-8450-af34d3cb0275","html_url":"https://github.com/webdriverio/codemod","commit_stats":{"total_commits":177,"total_committers":13,"mean_commits":"13.615384615384615","dds":0.4067796610169492,"last_synced_commit":"75eae6eef12126df7a8fea83baaea280c46d1d9f"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/webdriverio/codemod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio%2Fcodemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio%2Fcodemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio%2Fcodemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio%2Fcodemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdriverio","download_url":"https://codeload.github.com/webdriverio/codemod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio%2Fcodemod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31500397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:01:26.286Z","updated_at":"2026-04-07T04:31:28.483Z","avatar_url":"https://github.com/webdriverio.png","language":"JavaScript","funding_links":["https://tidelift.com/funding/github/npm/webdriverio","https://opencollective.com/webdriverio"],"categories":["Misc"],"sub_categories":["ant-design"],"readme":"WebdriverIO Codemod [![Test](https://github.com/webdriverio/protractor-codemod/actions/workflows/test.yaml/badge.svg)](https://github.com/webdriverio/protractor-codemod/actions/workflows/test.yaml)\n===================\n\nThis project contains various codemods to help migrating from either one major WebdriverIO version to another or from a specific framework to WebdriverIO. It can be used with [jscodeshift](https://www.npmjs.com/package/jscodeshift) and currently supports the following migrations:\n\n- [x] v5 ▶️\u0026nbsp; v6 (see [migration guide](https://webdriver.io/docs/v6-migration))\n- [x] v6 ▶️\u0026nbsp; v7 (see [migration guide](https://webdriver.io/docs/v7-migration))\n- [x] Protractor ▶️\u0026nbsp; WebdriverIO (see [migration guide](https://webdriver.io/docs/protractor-migration))\n- [x] Sync ▶️\u0026nbsp; Async (see [migration guide](https://webdriver.io/docs/async-migration))\n  - Note: This codemod depends on the [proxying of chained async calls](https://webdriver.io/blog/2021/07/28/sync-api-deprecation/) added in v7.9\n- [ ] _more will eventually follow, let us know which ones you would like to see_\n\nIf you run into any issues during your migration please [let us know](https://github.com/webdriverio/codemod/discussions/new).\n\n## Install\n\nTo transform your spec files, you need to install the following packages:\n\n```sh\n$ npm install jscodeshift @wdio/codemod\n```\n\n## Usage\n\nTo transform you code, run:\n\n```sh\n$ npx jscodeshift -t ./node_modules/@wdio/codemod/\u003cframework\u003e \u003cpath\u003e\n# e.g. to migrate from v5 to v6\n$ npx jscodeshift -t ./node_modules/@wdio/codemod/v6 ./e2e/\n# e.g. to migrate from v6 to v7:\n$ npx jscodeshift -t ./node_modules/@wdio/codemod/v7 ./e2e/\n# e.g. to transform Protractor code:\n$ npx jscodeshift -t ./node_modules/@wdio/codemod/protractor ./e2e/\n# e.g. to tranform from sync to async\n$ npx jscodeshift -t ./node_modules/@wdio/codemod/async ./e2e/\n```\n\nIf you use TypeScript make sure you apply a different parser as parameter, e.g.:\n\n```sh\n$ npx jscodeshift -t ./node_modules/@wdio/codemod/protractor --parser=tsx ./e2e/*.ts\n```\n\nIf you use a different line terminator from your os, you can override it as parameter, e.g.:\n\n```sh\n$ npx jscodeshift -t ./node_modules/@wdio/codemod/async --printOptions='{\\\"lineTerminator\\\":\\\"\\n\\\"}' ./e2e/\n```\n\nYou can transform tests as well as config files, e.g.:\n\n![Codemod Usage Example][example]\n\n[example]: /.github/assets/example.gif \"Codemod Usage Example\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdriverio%2Fcodemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdriverio%2Fcodemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdriverio%2Fcodemod/lists"}