jest-mongodb
jest-mongodb copied to clipboard
The tests stop running after installing jest-mongodb
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.
I have the same problem
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!
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!
I have the same problem
On Fedora I had to install compat-openssl10
that provides libcrypto.so.10
.
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?
I have the same problem yet
I have the same problem in github actions when running on Ubuntu 20 but not when running on Ubuntu 18.
Had the same issue on Fedora. Installing compat-openssl10 solves it. dnf install compat-openssl10