New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ava-codemods

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ava-codemods

Codemods to simplify upgrading AVA versions

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by111.11%
Maintainers
4
Weekly downloads
 
Created
Source

ava-codemods Build Status

Codemods for AVA

Codemods to simplify upgrading AVA versions.

Codemods are small programs that help you automate changes to your codebase. Think of them as search and replace on steroids.

This module contains a set of codemods that enable you to upgrade your code between various AVA releases. It is maintained by the AVA team, and will be updated anytime we introduce breaking API changes. We plan to eventually introduce codemods that allow you to switch from other popular Runners like mocha and tap.

Install

$ npm install --global ava-codemods

Usage

$ ava-codemods --help

  Codemods to simplify upgrading AVA versions

  Usage
    $ ava-codemods [<file|glob> ...]

  Options
    --force, -f    Bypass safety checks and forcibly run codemods

  Available upgrades
    - 0.13.x → 0.14.x

Simply run ava-codemods in your terminal and answer a few questions. You can pass a filename directly to the CLI. If you do not, you will be prompted for one.

Ensure you have a backup of your tests or commit the latest changes before running this.

Supported codemods

Upgrading to 0.14

  • Renaming t.ok() to t.truthy()
  • Renaming t.notOk() to t.falsy()
  • Renaming t.same() to t.deepEqual()
  • Renaming t.notSame() to t.notDeepEqual()

License

MIT © James Talmage

Keywords

FAQs

Package last updated on 06 Apr 2016

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