jest-sonar
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -46,3 +46,7 @@ const Reporter = require('../src/reporter'); | ||
duration: 10, | ||
failureMessages: ['A failure'] | ||
failureMessages: [ | ||
`A crazy failure ${String.fromCharCode( | ||
27 | ||
)}[0m and 🔥` | ||
] | ||
} | ||
@@ -49,0 +53,0 @@ ] |
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.2.6](https://github.com/sh33dafi/jest-sonar/compare/v0.2.5...v0.2.6) (2020-04-25) | ||
### Bug Fixes | ||
* **#13:** escaped chars in failure ([642813b](https://github.com/sh33dafi/jest-sonar/commit/642813bb26576c7a4ddeda5824fcc47bfb01ded1)), closes [#13](https://github.com/sh33dafi/jest-sonar/issues/13) | ||
### [0.2.5](https://github.com/sh33dafi/jest-sonar/compare/v0.2.4...v0.2.5) (2020-03-06) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "jest-sonar", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "A sonar reporter for jest", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -46,3 +46,5 @@ const path = require('path'); | ||
const buildFailure = failure => | ||
`<failure message="Error"><![CDATA[${failure}]]></failure>`; | ||
`<failure message="Error"><![CDATA[${escape( | ||
failure | ||
)}]]></failure>`; | ||
const buildFile = testFile => `<file path="${testFile.path}">`; | ||
@@ -49,0 +51,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
239558
205