Thursday 30 March 2017

PhantomJS with AngularCLI and Karma

npm install --save-dev karma-phantomjs-launcher

Then update karma.config.js (lines 11 and 31):

image

You’ll now get the following error if you attempt to npm test or ng test:

image

To fix this just uncomment the following lines from your polyfill.ts:

image

No comments:

Post a Comment