mjackson / expect

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

.toBeA() isn't functioning #243

Closed hamzanaveedmalik closed 6 years ago

hamzanaveedmalik commented 6 years ago

I've just used the function .toBeA('number') in my code and it's not working. I'm using it concatenated with .toBe(4).toBeA('number')

ljharb commented 6 years ago

@hamzanaveedmalik what version of expect are you using? v21+ is maintained by jest; this repo is for versions < 21.

edbutcher commented 6 years ago

I have used an "expect(2).toBeA('number')" in "expect": "^22.1.0" and it gives me the error.

ljharb commented 6 years ago

@edbutcher expect v21+ is maintained by jest; and thus is not this repo.

edbutcher commented 6 years ago

Sorry, @ljharb . I haven't read the "Notice" section... I'm using version "expect": "^1.20.2" and everything works fine.