mjackson / expect

Write better assertions
MIT License
2.29k stars 117 forks source link

toBeA() not functioning as expected. #233

Closed sar-gupta closed 6 years ago

sar-gupta commented 6 years ago

screenshot from 2017-10-06 13-54-09

expect(5).toBeA('number');

is giving error: TypeError: expect(...).toBeA is not a function

It should work according to documentation here

ljharb commented 6 years ago

expect v21+ is now part of jest; please file issues on that repo.