https://github.com/codeceptjs/codecept3-upgrade
🛫 Upgrade script for CodeceptJS 3.0
https://github.com/codeceptjs/codecept3-upgrade
Last synced: 6 months ago
JSON representation
🛫 Upgrade script for CodeceptJS 3.0
- Host: GitHub
- URL: https://github.com/codeceptjs/codecept3-upgrade
- Owner: codeceptjs
- Created: 2020-03-02T09:21:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T08:51:46.000Z (almost 3 years ago)
- Last Synced: 2025-04-25T06:29:21.423Z (8 months ago)
- Language: JavaScript
- Homepage: https://codecept.io
- Size: 1.25 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🛫 codecept3-upgrade
Upgrade script for CodeceptJS v3 to automatically migrate tests to the new syntax:
```js
// CodeceptJS v2 - before
Scenario('title', (I, loginPage) => {});
// CodeceptJS v3 - after
Scenario('title', ({ I, loginPage }) => {});
```
## Usage
âš This script will change your code. Before using this script - commit all your changes and switch to a new git branch.
Migration is done via "codecept3-upgrade" npx script which can be executed without an installation.
* Upgrade all tests (*test.js) in current directory:
```
npx codecept3-upgrade
```
* Upgrade all tests (*test.js) in a path:
```
npx codecept3-upgrade tests/
```
* In case other file mask than **_test.js is used, apply this script to directory with tests and provide `--all` option so all JS files will be parsed:
```
npx codecept3-upgrade tests/ --all
```
After migration was performed review all the updates, install CodeceptJS v3 and run all tests.
If updated tests work correctly - commit your changes.
---
License MIT