score:2

Accepted answer

you can specify the second argument to be anything:

expect(fn).tohavebeencalledwith(
    "http://localhost:5000/myurls",
    expect.anything()
);

see here: https://jestjs.io/docs/en/expect#expectanything


Related Query

More Query from same tag