How to match called with an array with order?
For example, I have tried, but failed as it ignore order:
expect(fn()).toBeCalledWith(expect.arrayContaining([1,2,3]))
My goal is success when calling with [1,2,3] [1,2,3,4] [1,10,2,7,8,9,3] but not [3,2,1]
The above code give me pass when called with [3,2,1], how can I achieve this goal?