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

mocha-github-actions-reporter

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-github-actions-reporter - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

18

index.js
const core = require('@actions/core');
const { SUMMARY_ENV_VAR } = require('@actions/core/lib/summary');
const { issueCommand } = require('@actions/core/lib/command');

@@ -39,10 +40,13 @@ const mocha = require('mocha');

}
core.summary.addRaw(`:white_check_mark: ${this.stats.passes || 0} passing (${milliseconds(this.stats.duration)})`, true);
if (this.stats.pending) {
core.summary.addRaw(`:pause_button: ${this.stats.pending} pending`, true);
// Check if Job Summary is supported on this platform
if (process.env[SUMMARY_ENV_VAR]) {
core.summary.addRaw(`:white_check_mark: ${this.stats.passes || 0} passing (${milliseconds(this.stats.duration)})`, true);
if (this.stats.pending) {
core.summary.addRaw(`:pause_button: ${this.stats.pending} pending`, true);
}
if (this.stats.failures) {
core.summary.addRaw(`:x: ${this.stats.failures} failing`, true);
}
core.summary.write();
}
if (this.stats.failures) {
core.summary.addRaw(`:x: ${this.stats.failures} failing`, true);
}
core.summary.write();
});

@@ -49,0 +53,0 @@ }

{
"name": "mocha-github-actions-reporter",
"version": "0.3.0",
"version": "0.3.1",
"description": "Reporter for mocha that outputs Github Actions annotations",

@@ -5,0 +5,0 @@ "main": "index.js",

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