Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codecept3-upgrade

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codecept3-upgrade

Upgrade script for CodeceptJS v3 to automatically migrate tests to the new syntax:

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🛫 codecept3-upgrade

Upgrade script for CodeceptJS v3 to automatically migrate tests to the new syntax:

// 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

FAQs

Package last updated on 25 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc