jeudi 29 novembre 2018

expect(jest.fn()).toHaveBeenCalledWith(expected)

expect(jest.fn()).toHaveBeenCalledWith(expected) is not working with react native 57. Is anyone facing the same issues?

The below test function is failing

[code]

it('message', () => {
    const tt = [
      {data}
    ];

    expect(myfunc).toHaveBeenCalledWith(tt);
  });

[/code]

Aucun commentaire:

Enregistrer un commentaire