I use Jest to test if a large array contains a given value:
it('should contain x', () => {
const myArray: string[] = myFunction();
expect(myArray).toContain('x');
});
When the test fails, Jest cuts off the received array:
Expected value: "x"
Received array: ["a", "b", "c", "d", "e", "f", "g", "h", ...]
This makes it difficult for me to check why the test failed. Can I force Jest force to print the entire received array instead of cutting it off?