jest-sonar
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
239006
199