Add tests for results with React component names

This commit is contained in:
Jozef Izso 2023-12-18 13:10:06 +01:00
parent c1926959e2
commit 7aa575a237
5 changed files with 70 additions and 1 deletions

View file

@ -1,5 +1,31 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`jest-junit tests report from #235 testing react components named <ComponentName /> 1`] = `
TestRunResult {
"path": "fixtures/external/jest/jest-react-component-test-results.xml",
"suites": [
TestSuiteResult {
"groups": [
TestGroupResult {
"name": "",
"tests": [
TestCaseResult {
"error": undefined,
"name": "<Component /> should render properly",
"result": "success",
"time": 704,
},
],
},
],
"name": "\\<Component /\\>",
"totalTime": 798,
},
],
"totalTime": 1000,
}
`;
exports[`jest-junit tests report from ./reports/jest test results matches snapshot 1`] = `
TestRunResult {
"path": "fixtures/jest-junit.xml",