juhovh / mocha-jenkins-reporter

Mocha reporter for Jenkins style JUnit reports
MIT License
123 stars 69 forks source link

An invalid XML character (Unicode: 0x1b) was found in the element content of the document #89

Open bruun opened 4 years ago

bruun commented 4 years ago

This affects version 0.4.2, so it seems different to the other similar reported errors. The issue happens when a sinon-chai expect fails, and the failing line in the XML looks like this:

Nested exception: 
org.xml.sax.SAXParseException; lineNumber: 1481; columnNumber: 1; An invalid XML character (Unicode: 0x1b) was found in the element content of the document.

The line in question:

^[[31m    address: { city: "redacted", line1: "redacted", postal_code: "redacted" },

Let me know if there is any other information I can provide