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 1.5.4 to 1.5.5

3

CHANGELOG.md
#Changelog
###1.5.5
- Change `fs.close` method to `fs.closeSync` in `reportGenerator.js` to be in line with other sync methods. Addresses [#107](https://github.com/adamgruber/mochawesome/issues/107)
###1.5.4

@@ -4,0 +7,0 @@ - Run pending tests thru `cleanTest` function. Fixes possible scenario where a pending test with a large amount of text could cause node to run out of memory. See [#94](https://github.com/adamgruber/mochawesome/issues/94)

3

gulpfile.js

@@ -189,2 +189,3 @@ var gulp = require('gulp'),

reportTitle: 'customTitle',
reportPageTitle: 'customReportPageTitle',
inlineAssets: true,

@@ -199,3 +200,3 @@ autoOpen: true

gulp.task('testOpts2', function () {
mochaOpts.reporterOptions = 'reportDir=customDir,reportName=customName,reportTitle=customTitle,inlineAssets=true,autoOpen=true';
mochaOpts.reporterOptions = 'reportDir=customDir,reportName=customName,reportTitle=customTitle,reportPageTitle=customReportPageTitle,inlineAssets=true,autoOpen=true';
return gulp.src(testPaths.basic)

@@ -202,0 +203,0 @@ .pipe(spawnmocha(mochaOpts))

@@ -14,2 +14,3 @@ var path = require('path');

config.reportTitle = _getOption('reportTitle', options);
config.reportPageTitle = _getOption('reportPageTitle', options);
config.inlineAssets = _getOption('inlineAssets', options, true);

@@ -16,0 +17,0 @@ config.autoOpen = _getOption('autoOpen', options, true);

@@ -82,2 +82,3 @@ /*jshint loopfunc: true */

reportTitle: config.reportTitle || process.cwd().split(config.splitChar).pop(),
reportPageTitle: config.reportPageTitle || 'Mochawesome Report Card',
inlineAssets: config.inlineAssets,

@@ -84,0 +85,0 @@ stats: self.stats,

@@ -82,3 +82,3 @@ var async = require('async'),

fs.writeSync(writeFile, data);
fs.close(writeFile);
fs.closeSync(writeFile);
callback(null, outFile);

@@ -85,0 +85,0 @@ } catch (err) {

{
"name": "mochawesome",
"version": "1.5.4",
"version": "1.5.5",
"description": "A Gorgeous HTML/CSS Reporter for Mocha.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -93,2 +93,3 @@ mochawesome

- `reportTitle: {Sring}` - changes the title of the report
- `reportPageTitle: {String}` - changes the page title of the report in `<title>` element
- `inlineAssets: {Boolean}` - when `true` inlines all report assets into a self-contained report file

@@ -106,2 +107,3 @@

$ export MOCHAWESOME_REPORTTITLE=customReportTitle
$ export MOCHAWESOME_REPORTPAGETITLE=customReportPageTitle
$ export MOCHAWESOME_INLINEASSETS=true

@@ -112,3 +114,3 @@ ```

```bash
$ mocha test.js --reporter mochawesome --reporter-options reportDir=customReportDir,reportName=customReportName,reportTitle=customReportTitle,inlineAssets=true
$ mocha test.js --reporter mochawesome --reporter-options reportDir=customReportDir,reportName=customReportName,reportTitle=customReportTitle,reportPageTitle=customReportPageTitle,inlineAssets=true
```

@@ -123,2 +125,3 @@

reportTitle: 'customReportTitle',
reportPageTitle: 'customPageTitle',
inlineAssets: true

@@ -125,0 +128,0 @@ }

Sorry, the diff of this file is not supported yet

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