11-12-17

TIL

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