When writing a Jest test.each() test using an enum like below
enum MyEnum {
FirstValue,
SecondValue,
ThirdValue
}
describe('my example', () => {
test.each([MyEnum.FirstValue, MyEnum.SecondValue, MyEnum.ThirdValue])(
'%o',
(input: MyEnum) => {
expect(input).toBeDefined();
}
);
});
The output text is:
my example
0
1
2
I would like it to be
my example
FirstValue
SecondValue
ThirdValue
Using other formatting parameters like %p or %j like listed in the Jest docs don't change anything