Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
test markdown support
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbuck committed Apr 29, 2020
1 parent daf2e9e commit ca062e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions json-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ class MyCustomReporter {

result.failureMessages.forEach(failureMessages => {
const newLine = "%0A";
const message = failureMessages.replace(/\n/g, newLine);
const message = ['**bold**', '_italic_', '# h1', '## h2'].join(newLine);
const captureGroup = message.match(/:([0-9]+):([0-9]+)/);

if (!captureGroup) {
console.log('Unable to extract line number from call stack')
return;
}
// if (!captureGroup) {
// console.log('Unable to extract line number from call stack')
// return;
// }

const [, line, col] = captureGroup;
const [, line, col] = [,7,1];
console.log(`::error file=${testFilePath},line=${line},col=${col}::${message}`);
})

Expand Down

0 comments on commit ca062e8

Please sign in to comment.