I am trying to implement phantom js in angular 8 application by following below steps:
npm install karma-phantomjs-launcher --save-devnpm install intl --save- Add
import 'core-js/client/shim';andimport intl;to polyfills.ts.
I am getting following syntax error on running ng test:
SyntaxError: Use of reserved word 'class'
at http://localhost:9876/_karma_webpack_/polyfills.js:22707:0
Kindly guide me for this issue. Thanks