1.0.2 • Published 6 years ago
@azu/mocha-migrate v1.0.2
@azu/mocha-migrate
Mocha migration script for mocha v7.
This migration script is based on @wnghdcjfe works.
Usage
Using npx:
# mocha.opts to .mocharc.json
npx @azu/mocha-migrate migrate-opts -file ./test/mocha.opts -type json
# mocha.opts to .mocharc.js
npx @azu/mocha-migrate migrate-opts -file ./test/mocha.opts -type js
# mocha.opts to .mocharc.yml
npx @azu/mocha-migrate migrate-opts -file ./test/mocha.opts -type yml
# mocha.opts to .mocharc.yaml
npx @azu/mocha-migrate migrate-opts -file ./test/mocha.opts -type yamlGlobal installation:
npm install --global @azu/mocha-migrate
mocha-migrate migrate-opts -file ./test/mocha.opts -type jsAdditional features: -rm remove mocha.opts after migration
# migrate and remove mocha.opts
npx @azu/mocha-migrate migrate-opts -file ./test/mocha.opts -type json -rmChangelog
See Releases page.
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
License
MIT © azu
This script includes Mocha and @wnghdcjfe Pull Request.