Closed oddball closed 3 months ago
to confirm, you are using package mongodb-memory-server
(no suffix like -core
or -global
), correct?
are you using any custom configuration (environment variables MONGOMS_
or config.mongodbMemoryServer
in a package.json or inside the .create
call)?
i just tired to reproduce this (on linux), and could not get it.
Could you provide a reproduction repository?
I am using mongodb-memory-server, no suffix
No MONGOMS_ variables
I will make a repo that reproduce it. Might take a day..
While creating a repo to reproduce this, I found out that everything is my fault.
I had a
jest.setTimeout(7000);
in a file, and in the hoisted case, it stopped the download before finishing, making the binary corrupt.
In the other case it ran into a
jest.setTimeout(30000);
first, and all was fine.
Sorry for the noise
Versions
package: mongo-memory-server
What is the Problem?
The download of the mongodb binary is corrupted when using a hoisted dependency in a monorepo
We have a mono repo.
When I have a repo/packages/auth/package.json and do
When I have a repo/package.json to where I host the dependencies
If I copy a working mongod-x64-darwin-6.0.14 to ~/.cache/mongodb-binaries/ the tests works fine