Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ember-codemods/ember-qunit-codemod
https://github.com/ember-codemods/ember-qunit-codemod
codemod ember testing
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/ember-codemods/ember-qunit-codemod
- Owner: ember-codemods
- License: mit
- Created: 2017-10-18T14:22:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T23:54:30.000Z (about 4 years ago)
- Last Synced: 2024-08-09T21:13:42.710Z (3 months ago)
- Topics: codemod, ember, testing
- Language: JavaScript
- Size: 606 KB
- Stars: 36
- Watchers: 5
- Forks: 20
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ember-qunit-codemod
This codemod is intended to automatically convert your projects from the older
`moduleFor*` syntax of `ember-qunit@2` to the newer syntax proposed by [emberjs/rfcs#232](https://github.com/emberjs/rfcs/blob/master/text/0232-simplify-qunit-testing-api.md).This codemod can be used in conjunction with [ember-test-helpers-codemod](https://github.com/simonihmig/ember-test-helpers-codemod).
## Usage
To run a specific codemod from this project, you would run the following:
```
npx ember-qunit-codemod convert-module-for-to-setup-test path/of/files/ or/some**/*glob.js# or
yarn global add ember-qunit-codemod
ember-qunit-codemod convert-module-for-to-setup-test path/of/files/ or/some**/*glob.js
```## Transforms
* [convert-module-for-to-setup-test](transforms/convert-module-for-to-setup-test/README.md)
## Contributing
### Installation
* clone the repo
* change into the repo directory
* `yarn`### Running tests
* `yarn test`
### Update Documentation
* `yarn update-docs`
## Credit
ember-qunit-codemod is heavily inspired by the work done in [qunit-dom-codemod](https://github.com/simplabs/qunit-dom-codemod)
and [ember-mocha-codemods](https://github.com/Turbo87/ember-mocha-codemods)
largely by Tobias Bieniek. Thank you!