score:0

I'm not sure if toBeString() is a valid jest matcher.

You can try this instead:

expect(typeof footer.prop("copyright")).toBe('string');

Related Query

More Query from same tag