I\'m using Angular 4, Webpack 2.4.1, Karma 1.6 and Jasmine 2.6.1 and am writing ES2015 not TypeScript
I\'ve got a tiny angular demo app and I want to
This error is thrown because there's no Map
in browsers. PhantomJS is used as Karma driver, and it doesn't support ES6 features.
If polyfills (e.g. core-js
) aren't loaded in files that were included in tests, they should be loaded separately, for example via karma-es6-shim plugin:
...
frameworks: ['es6-shim', 'jasmine'],
...