phantomJS for Angular 4 -


i keen on getting project set gitlab's ci/cd. tried phantomjs testing set before moving there:

  1. i ran npm -d phantomjs-prebuilt karma-phantomjs-launcher in existing ng project.
  2. i ran npm -s intl
  3. i edited karma.conf.js file, include:

      require('karma-phantomjs-launcher'), //...   browsers: ['chrome', 'phantonjs'], 
  4. i edited polyfills.js file, uncommenting:

    import 'core-js/es6/symbol'; import 'core-js/es6/object'; import 'core-js/es6/function'; import 'core-js/es6/parse-int';   import 'core-js/es6/parse-float'; import 'core-js/es6/number'; import 'core-js/es6/math'; import 'core-js/es6/string'; import 'core-js/es6/date'; import 'core-js/es6/array'; import 'core-js/es6/regexp'; import 'core-js/es6/map'; import 'core-js/es6/weak-map'; import 'core-js/es6/set'; //... import 'intl';  // run `npm install --save intl`. /**  * need import @ least 1 locale-data intl.  */ import 'intl/locale-data/jsonp/en'; 

now, should set go tests... or thought. getting:

ng test --browser phantomjs --watch false

27 07 2017 17:36:52.088:info [phantomjs 2.1.1 (windows 8 0.0.0)]: connected on socket dykzqyglako5bjsraaaa id 32293 707 phantomjs 2.1.1 (windows 8 0.0.0) error   syntaxerror: use of reserved word 'let' in strict mode   @ http://localhost:9876/_karma_webpack_/main.bundle.js:663 phantomjs 2.1.1 (windows 8 0.0.0) error   syntaxerror: use of reserved word 'let' in strict mode   @ http://localhost:9876/_karma_webpack_/main.bundle.js:663  phantomjs 2.1.1 (windows 8 0.0.0) error   syntaxerror: use of reserved word 'let' in strict mode   @ http://localhost:9876/_karma_webpack_/main.bundle.js:663 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -