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

11 comments:

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

    ReplyDelete
    Replies
    1. Great Article android based projects

      Java Training in Chennai Project Center in Chennai Java Training in Chennai projects for cse The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training Project Centers in Chennai

      Delete
  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. Eminem net worth 2021: Eminem is a multi-platinum selling American rapper, producer and actor who has a net worth of $230 million. He is consistently one of the highest-paid entertainers in the world.

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

    ReplyDelete
  5. 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