mjackson / expect

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

(...).toExist is not a function #251

Closed leoggonzalez closed 5 years ago

leoggonzalez commented 5 years ago

I'm getting this error when calling .toExist();

expect('something truthy').toExist();

TypeError: (0 , _expect2.default)(...).toExist is not a function at Context.eval (webpack-internal:///42:27:47);

Other methods work just fine

ljharb commented 5 years ago

That's because .toExist is part of jest's expect package, which is v21+ (see the readme). This repo is for versions < 21.