Jest: Misc

expect(new A()).toBeInstanceOf(A)
expect(() => {}).toEqual(expect.any(Function))
expect('pizza').toEqual(expect.anything())

Leave a Reply

Your email address will not be published. Required fields are marked *