TIL
- that if you’re testing a JS-based app with generators (e.g.
async/await
), you’ll needrequire('babel-polyfill')
prior to booting the app to make sure the polyfill is loaded before the generator is initialized. This will prevent theregeneratorRuntime is not defined
error.