You can use async/await
in your Ember testing suite, today! This blog post explains the situation pretty thoroughly. Also check out this blog post.
It's great in tests, but not quite useful for app code yet.
There are three ways we can get it to work. If you try async/await
without any of these changes, you will get the error regeneratorRuntime is not defined
.
Method | Size ※ | app code | test code |
---|---|---|---|
includePolyfill: true | 30kb | yes | yes |
ember-maybe-import-regenerator | 2kb | yes | yes |