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

jest-sonar

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-sonar - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

### [0.2.5](https://github.com/sh33dafi/jest-sonar/compare/v0.2.4...v0.2.5) (2020-03-06)
### Bug Fixes
* **reporter:** support empty test suites ([6fc69f1](https://github.com/sh33dafi/jest-sonar/commit/6fc69f1))
### [0.2.4](https://github.com/sh33dafi/jest-sonar/compare/v0.2.2...v0.2.4) (2019-09-07)

@@ -7,0 +16,0 @@

2

package.json
{
"name": "jest-sonar",
"version": "0.2.4",
"version": "0.2.5",
"description": "A sonar reporter for jest",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,13 +16,7 @@ const Reporter = require('./reporter');

onTestResult(contexts, info, results) {
const rootDir =
contexts.context.config.cwd || this.config.rootDir || '';
const reporter = new Reporter(rootDir);
this.report = reporter.toSonarReport(results);
}
onRunComplete() {
onRunComplete(contexts, results) {
const reporter = new Reporter(this.config.rootDir || '');
const fileName = this.getFileName();
this.createDirectory(path.dirname(fileName));
fs.writeFileSync(fileName, this.report, 'utf8');
fs.writeFileSync(fileName, reporter.toSonarReport(results), 'utf8');
}

@@ -29,0 +23,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