New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

karma-nested-reporter

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-nested-reporter

Easier to read test output with nested describe and it blocks.

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
398
increased by6.99%
Maintainers
1
Weekly downloads
 
Created
Source

karma-nested-reporter

A Karma plugin. Report results with each describe indented.

NPM version NPM downloads Dependency Status Gitter Chat for karma-nested-reporter Donate via PayPal Donate via Gratipay Analytics Follow JamieMason on GitHub Follow fold_left on Twitter

screenshot of karma nested reporter

Installation

The easiest way is to keep karma-nested-reporter as a devDependency in your package.json:

{
  "devDependencies": {
    "karma": ">=0.9",
    "karma-nested-reporter": "0.1.5"
  }
}

You can simply do it with:

npm install karma-nested-reporter --save-dev

Enabling this reporter

It's recommended that you use this reporter instead of the progress reporter.

// karma.conf.js
module.exports = function(config) {
  config.set({
    reporters: ['nested']
  });
};

You can pass list of reporters as a CLI argument too:

karma start --reporters nested

Optional Configuration

Default values

// karma.conf.js
module.exports = function(config) {
  config.set({
    nestedReporter: {
      color: {
        should: 'red',
        browser: 'yellow'
      },
      icon: {
        failure: '✘ ',
        indent: 'ட ',
        browser: ''
      }
    }
  });
};

Colors

This reporter will output in color if colors: true is present in your Karma configuration.

Colors can be optionally overridden with any of the values defined by chalk's colors and styles.

Icons

If the for example isn't your thing, or it doesn't display in your Terminal, this and the other icons can be substituted for others.

The Karma Test Runner

For more information on Karma see the homepage.

Keywords

FAQs

Package last updated on 20 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc