https://github.com/ember-cli/ember-maybe-import-regenerator-for-testing
https://github.com/ember-cli/ember-maybe-import-regenerator-for-testing
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ember-cli/ember-maybe-import-regenerator-for-testing
- Owner: ember-cli
- License: mit
- Created: 2017-10-30T02:49:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T19:06:48.000Z (over 4 years ago)
- Last Synced: 2025-06-05T00:20:05.093Z (8 months ago)
- Language: JavaScript
- Size: 1.66 MB
- Stars: 0
- Watchers: 12
- Forks: 3
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-maybe-import-regenerator-for-testing
This is an addon that'll import the
[Regenerator](https://github.com/facebook/regenerator)
Runtime for usage in your Ember apps tests, but only if you didn't already set
`babel.includePolyfill` to true or have `ember-maybe-import-regenerator` (a
sister package that ensures regenerator runtime is present in the main
`vendor.js` for usage throughout the application). This is useful for apps that
want to use `async` / `await` (or ES6 generator functions) but don't want to
ship the regenerator runtime in production.
## Installation
* `git clone ` this repository
* `cd my-addon`
* `npm install`
## Running
* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).
## Running Tests
* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`
## Building
* `ember build`
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).