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.14 to 0.2.15

7

CHANGELOG.md

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

### [0.2.15](https://github.com/sh33dafi/jest-sonar/compare/v0.2.14...v0.2.15) (2022-12-11)
### Features
* **#36:** respect <rootDir> in outputDirectory ([5257cff](https://github.com/sh33dafi/jest-sonar/commit/5257cff8fe546b7bf364ff77a129c3ca50d2a72b)), closes [#36](https://github.com/sh33dafi/jest-sonar/issues/36)
### [0.2.14](https://github.com/sh33dafi/jest-sonar/compare/v0.2.13...v0.2.14) (2022-12-09)

@@ -7,0 +14,0 @@

2

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

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

@@ -29,3 +29,6 @@ const fs = require('fs');

return path.resolve(
this.options.outputDirectory,
this.replaceRootDirInPath(
this.config.rootDir,
this.options.outputDirectory
),
this.options.outputName

@@ -61,4 +64,15 @@ );

}
replaceRootDirInPath(rootDir, filePath) {
if (!filePath || !/^<rootDir>/.test(filePath)) {
return filePath;
}
return path.resolve(
rootDir,
path.normalize('./' + filePath.substring('<rootDir>'.length))
);
}
}
module.exports = JestSonar;
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