Jest XUnit
jest-xunit is a reporter for Jest that produces an XML in xunit format.
Installation
``` npm i -D jest-xunit ``` Then in your jest config specify jest-xunit as a reporter: ```js { ... reporters:'default', // keep the default reporter
[
'jest-xunit',
{
traitsRegex: [
{ regex: /\(Test Type:([^,)]+)(,|\)).*/g, name: 'Category' },
{ regex: /.*Test Traits: ([^)]+)\).*/g, name: 'Type' }
]
}
]
]
...
}
```