[solved] Jasmine/Karma returns Failed: regeneratorRuntime is not defined

RegeneratorRuntime is a lib that babel uses to support async/await syntax.

If you create a new auerlia app with similar config, you can see the extra import in src/main.js and also the test setup test/setup.js (or test/unit/setup.js I don’t remember exact). Make similar code adjustment in your app and install that npm package.

2 Likes