I have a code like below
expect(insertedData).toEqual({
id: expect.any(String),
clientId: 'client1',
...
I expect id should match any string, but what I get as result is
Not sure what I missed.
Also I used like below still same error
expect(insertedData).toEqual(expect.objectContaining({
id
andlastModifiedDate
fields' values are notString
. Can you check it? – Torn