feat: parse junit report with message

This commit is contained in:
Connor Monaghan 2025-03-11 18:11:28 +10:00
parent 41662db5ca
commit 70db77d88c
5 changed files with 78 additions and 1 deletions

View file

@ -26,6 +26,38 @@ TestRunResult {
}
`;
exports[`jest-junit tests parsing junit report with message succeeds 1`] = `
TestRunResult {
"path": "fixtures/junit-with-message.xml",
"suites": [
TestSuiteResult {
"groups": [
TestGroupResult {
"name": "Fails",
"tests": [
TestCaseResult {
"error": {
"details": "error.cpp:01
Expected: true
Which is: false >",
"line": undefined,
"path": undefined,
},
"name": "Test",
"result": "failed",
"time": 0,
},
],
},
],
"name": "Test",
"totalTime": 1,
},
],
"totalTime": 1,
}
`;
exports[`jest-junit tests report from #235 testing react components named <ComponentName /> 1`] = `
TestRunResult {
"path": "fixtures/external/jest/jest-react-component-test-results.xml",