Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mochawesome

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mochawesome - npm Package Compare versions

Comparing version 7.1.2 to 7.1.3

4

package.json
{
"name": "mochawesome",
"version": "7.1.2",
"version": "7.1.3",
"description": "A gorgeous reporter for Mocha.js",

@@ -58,3 +58,3 @@ "scripts": {

"lodash.isstring": "^4.0.1",
"mochawesome-report-generator": "^6.1.1",
"mochawesome-report-generator": "^6.2.0",
"strip-ansi": "^6.0.1",

@@ -61,0 +61,0 @@ "uuid": "^8.3.2"

@@ -164,10 +164,12 @@ const Base = require('mocha/lib/reporters/base');

// support `reportFilename` [name] replacement token
if (rootSuite.suites.length === 1) {
const firstSuite = rootSuite.suites[0];
rootSuite.file = firstSuite.file || rootSuite.file;
rootSuite.fullFile = firstSuite.fullFile || rootSuite.fullFile;
} else if (!rootSuite.suites.length && rootSuite.tests.length) {
const firstTest = this.runner.suite.tests[0];
rootSuite.file = firstTest.file || rootSuite.file;
rootSuite.fullFile = firstTest.fullFile || rootSuite.fullFile;
if (rootSuite) {
if (rootSuite.suites.length === 1) {
const firstSuite = rootSuite.suites[0];
rootSuite.file = firstSuite.file || rootSuite.file;
rootSuite.fullFile = firstSuite.fullFile || rootSuite.fullFile;
} else if (!rootSuite.suites.length && rootSuite.tests.length) {
const firstTest = this.runner.suite.tests[0];
rootSuite.file = firstTest.file || rootSuite.file;
rootSuite.fullFile = firstTest.fullFile || rootSuite.fullFile;
}
}

@@ -174,0 +176,0 @@

@@ -13,3 +13,3 @@ const isString = require('lodash.isstring');

/**
* Return a classname based on percentage
* Logger utility
*

@@ -16,0 +16,0 @@ * @param {String} msg - message to log

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