Socket
Socket
Sign inDemoInstall

jest-unique-reporter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-unique-reporter

A jest reporter that enforces unique test names


Version published
Weekly downloads
2
decreased by-90%
Maintainers
1
Weekly downloads
 
Created
Source

jest-unique-reporter

A jest reporter that enforces unique test names

Installation

yarn
yarn add --dev jest-unique-reporter
npm
npm install --dev jest-unique-reporter

Usage

Add to your jest configuration
{
  "reporters": [
    "<rootDir>/node_modules/jest-unique-reporter"
  ]
}

Configuration

jest-unique-reporter offers two configuration options.

fielddefaultdescription
globaldefault=falseif true then test names must be unique across all tests in the project. If false then test names must be unique per file.
useFullNamedefault=falseif true then describe blocks are included in the test names for comparison. If false then just "it" blocks are used for test names.
Example usage of configuration options
{
  "reporters": [
    ["<rootDir>/node_modules/jest-unique-reporter", {"global": false, "useFullName": false}]
  ]
}

FAQs

Package last updated on 26 Jul 2017

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