Pages

Monday, May 05, 2014

Resolving issue with Yeoman-generated Angular web project and the jasmine framework provider

I'm kicking off a new Angular web client project today and I'm using Yeoman to get me up and going here. Seems the angular-generator for Yeoman doesn't properly link in the plugins needed for running Jasmine specs within karma, reported on this StackOverflow question. Add the following to your karma.conf.js file in the project root directory:
plugins: [
    'karma-jasmine',
    'karma-coverage',
    'karma-junit-reporter',
    'karma-phantomjs-launcher',
    'karma-chrome-launcher',
    'karma-safari-launcher',
    'karma-firefox-launcher',
    'karma-ie-launcher'
],
I also needed to install these node packages and save the configuration to the package.json file:
npm install karma-jasmine --save-dev
npm install karma-coverage --save-dev
npm install karma-junit-reporter --save-dev
npm install karma-phantomjs-launcher --save-dev
npm install karma-safari-launcher --save-dev
npm install karma-firefox-launcher --save-dev

9 comments:

  1. Angular web project and the jasmine framework provider is always best for me

    ReplyDelete
  2. As stated by Stanford Medical, It is indeed the ONLY reason this country's women live 10 years longer and weigh an average of 42 pounds lighter than we do.

    (By the way, it has NOTHING to do with genetics or some secret diet and absolutely EVERYTHING related to "HOW" they eat.)

    BTW, I said "HOW", not "what"...

    Click on this link to see if this quick test can help you release your real weight loss possibility

    ReplyDelete
  3. Nice blog with good content,thanks for sharing.
    Visit Best Astrologer in Nizamabad

    ReplyDelete
  4. Good Article you know your article it's useful me. it's really good and helping your article and yes thanks for sharing information
    For sofa repair work contact thesofastore gives
    Sofa Refurbishing in Dommasandra,Bangalore

    ReplyDelete
  5. Really Nice Information,Thank You Very Much For Sharing.
    Visit Resorts Near Electronic City.

    ReplyDelete