Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shimohq/mocha2ava-codemod

codemod for mocha tests
https://github.com/shimohq/mocha2ava-codemod

ava code jscodeshift migration mocha

Last synced: about 6 hours ago
JSON representation

codemod for mocha tests

Awesome Lists containing this project

README

        

# Migrating from mocha to ava [![Travis](https://img.shields.io/travis/shimohq/mocha2ava-codemod.svg)](https://travis-ci.org/shimohq/mocha2ava-codemod) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

A `jscodeshift` tranformer for migrating tests from mocha to ava

## Usage

```
$ npm install --global mocha2ava-codemod
or
$ yarn global add mocha2ava-codemod

$ mocha2ava [options]
path Files or directory to transform. Can be a glob like src/**.test.js
Options
--force, -f Bypass Git safety checks and forcibly run codemods
--dry, -d Dry run (no changes are made to files)
```