How To Configure Jest Tests on TeamCity

Yumasoft - featured pic of article on how to configure jest with teamcity

If you are using jest to write JavaScript/TypeScript tests like this one:

describe('FormIoJsonProcessor', () => {
describe('test getComponentsCount', () => {
it('should return correct components count for a form with 6 not nested components', () => {
let formIoJsonProcessor = new FormIoJsonProcessor();
expect(formIoJsonProcessor
.getRandomizableComponentsCount(formWith6NotNestedComponents))
.toBe(6);
})
it('should treat FieldSet and Columns as a single component when counting components', () => {
let formIoJsonProcessor = new FormIoJsonProcessor();
expect(formIoJsonProcessor
.getRandomizableComponentsCount(formWith3NotNestedAnd4NestedIn2GroupsComponents))
.toBe(5);
})
});
})

and you’re looking for how to show their results in TeamCity as follows:

Jest tests on TeamCity - sample output

Then this article will help you configure that ?