Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shimohq/mocha2ava-codemod
- Owner: shimohq
- License: mit
- Created: 2017-06-22T10:20:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-04T04:25:22.000Z (over 7 years ago)
- Last Synced: 2024-11-02T20:33:22.935Z (3 days ago)
- Topics: ava, code, jscodeshift, migration, mocha
- Language: JavaScript
- Size: 63.5 KB
- Stars: 4
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-codemods - mocha2ava-codemod - A tranformer for migrating tests from Mocha to Ava. (Libraries / Mocha)
- awesome-jscodeshift - mocha2ava-codemod - A tranformer for migrating tests from Mocha to Ava. (Table of Contents / Codemods)
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)
```