Jest expect any String code example
Example 1: expect any function jest
expect(something).toEqual(expect.any(Function))
Example 2: jest expect not contain
expect('some string').toEqual(expect.not.stringContaining('something else'))
expect(something).toEqual(expect.any(Function))
expect('some string').toEqual(expect.not.stringContaining('something else'))