jest-mongodb icon indicating copy to clipboard operation
jest-mongodb copied to clipboard

The tests stop running after installing jest-mongodb

Open rodrigoyoshida opened this issue 5 years ago • 9 comments

Tried to install jest-mongodb on a working project with tests that were already passing, but after installing it all the tests stops working, it just displays "Determining test suites to run..." and after a few seconds it shows something like "Done in 2.77s.". Tried to carefully follow all the instructions on README but still was not able to make it work. When I comment th preset: '@shelf/jest-mongodb' line on my jest.config.js it works again.

I have a simple Express API (4.17.1) with Mongoose (5.7.12) running on Debian 10 Buster, Node v12.13.1.

rodrigoyoshida avatar Nov 29 '19 20:11 rodrigoyoshida

I have the same problem

saparicio avatar Dec 01 '19 17:12 saparicio

I had the same problem. In my case, this is what caused the problem:

./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod 
./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod)

Fixed it using the mongod binary installed in my system instead. Hope it helps!

flrnd avatar Dec 05 '19 17:12 flrnd

I had the same problem. In my case, this is what caused the problem:

./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod 
./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod)

Fixed it using the mongod binary installed in my system instead. Hope it helps!

Awesome: installing libcurl3 fixed the problem. Thank you!

saparicio avatar Dec 07 '19 09:12 saparicio

I have the same problem

diglopes avatar Dec 15 '19 14:12 diglopes

On Fedora I had to install compat-openssl10 that provides libcrypto.so.10.

henriklundgren avatar Feb 15 '20 05:02 henriklundgren

Hi @flrnd,

I had the same problem. In my case, this is what caused the problem:

./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod 
./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.3/mongod)

Fixed it using the mongod binary installed in my system instead. Hope it helps!

Thanks for the solution! I've managed to replace the binary by creating a simlink with the one provided by Debian 10, is this the correct way?

raymundovr avatar Mar 01 '20 10:03 raymundovr

I have the same problem yet

vimrookie avatar Sep 13 '20 22:09 vimrookie

I have the same problem in github actions when running on Ubuntu 20 but not when running on Ubuntu 18.

ntraut avatar Apr 01 '21 08:04 ntraut

Had the same issue on Fedora. Installing compat-openssl10 solves it. dnf install compat-openssl10

ghost avatar Apr 03 '21 18:04 ghost