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

testem-time-reporter

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testem-time-reporter - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

10

index.js

@@ -11,2 +11,3 @@ /* eslint-env node */

this.tests = {};
this.failures = [];
this.longestTest = { runDuration: 0 };

@@ -32,2 +33,3 @@ }

write(typeof data.error === 'string' ? data.error : JSON.stringify(data.error, null, 2));
this.failures.push(data);
}

@@ -64,2 +66,10 @@ if (data.passed) {

}
if (this.failures.length) {
write('\n Failing tests: \n');
this.failures.forEach(data => {
write(chalk.red(`\nTest Failure - ${data.name.trim()}\n`));
write(JSON.stringify(data.error.message, null, 2) + '\n');
write(typeof data.error === 'string' ? data.error : JSON.stringify(data.error, null, 2));
});
}
write(`\nLEGEND: ${chalk.blue('Skipped')} ${chalk.magenta('Tests > 2 seconds')} ${chalk.red('Tests > 1 second')} ${chalk.yellow('Tests > 0.5 seconds')}\n`);

@@ -66,0 +76,0 @@ }

2

package.json
{
"name": "testem-time-reporter",
"version": "1.0.1",
"version": "1.1.0",
"description": "A testem reporter for highlighting tests",

@@ -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