Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azu/mocha-migrate
Mocha migration script for mocha v7
https://github.com/azu/mocha-migrate
cli console migrate mocha
Last synced: 22 days ago
JSON representation
Mocha migration script for mocha v7
- Host: GitHub
- URL: https://github.com/azu/mocha-migrate
- Owner: azu
- License: mit
- Created: 2020-03-29T00:57:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T02:21:27.000Z (about 3 years ago)
- Last Synced: 2024-10-03T16:26:43.169Z (about 1 month ago)
- Topics: cli, console, migrate, mocha
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @azu/mocha-migrate
[Mocha](https://mochajs.org/) migration script from mocha v6 to mocha v7+.
- Migrate `mocha.opts` to `.mocharc.{json,js,yml,yaml}`
This migration script is based on [@wnghdcjfe](https://github.com/wnghdcjfe) works.
- [Create migrate script to change mocha.opts to \[json | js | yml | yaml\] by wnghdcjfe · Pull Request #4069 · mochajs/mocha](https://github.com/mochajs/mocha/pull/4069)
## Usage
Using [npx](https://www.npmjs.com/package/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 -rm## Changelog
See [Releases page](https://github.com/azu/mocha-migrate/releases).
## Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, [please create an issue](https://github.com/azu/mocha-migrate/issues).
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## Author
- [github/azu](https://github.com/azu)
- [twitter/azu_re](https://twitter.com/azu_re)## License
MIT © azu
This script includes [Mocha](https://mochajs.org/) and [@wnghdcjfe Pull Request](https://github.com/mochajs/mocha/pull/4069).