
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@nodepit/jest-mongodb-downloader
Advanced tools
Script which simply downloads MongoDB as configured in `jest-mongodb-config.js`; useful for Docker caching.
When being run, this script simply downloads the MongoDB version defined in jest-mongodb-config.js
.
But jest-mongodb
does this automatically upon start, so why would you want to do this? -- When explicitly triggering the download, you can make use of Docker’s caching, and avoid downloading MongoDB again and again if you just modified some source code.
Install with yarn add @nodepit/jest-mongodb-downloader -D
Add the following line to your Dockerfile before running the tests and copying the source code (make sure that jest-mongodb-config.js
is already in the image).
Add MONGOMS_DISABLE_POSTINSTALL
to prevent downloading the default version of MongoDB and only install the version which is specified in the jest-mongodb-config.js
.
ENV MONGOMS_DISABLE_POSTINSTALL=1
RUN yarn
COPY jest-mongodb-config.js ./
RUN yarn run jest-mongodb-downloader
Give a GitHub star to say “Thank you, NodePit!”
Copyright nodepit.com, 2020.
FAQs
Script which simply downloads MongoDB as configured in `jest-mongodb-config.js`; useful for Docker caching.
We found that @nodepit/jest-mongodb-downloader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.