Comment Comment by serguzest yes but consider this Jest code, replicating such in node testing is painful. testing code should be DSL-like, should be very easy to read. expect(bar).toEqual( expect.objectContaining({ symbol: `BTC`, interval: `hour`, timestamp: expect.any(Number), o: expect.any(Number), h: expect.any(Number), l: expect.any(Number), c: expect.any(Number), v: expect.any(Number) }) ); parent serguzest 1 year ago