Skip to content

A working example of MongoDB with Jest

License

Notifications You must be signed in to change notification settings

peter-snr/jest-mongodb

 
 

Repository files navigation

jest-mongodb CircleCI

A working example of MongoDB with Jest

Usage

Copy these files to your repo:

  • setup.js - spins up in-memory mongodb server
  • teardown.js - shuts it down
  • mongo-environment.js - sets up __MONGO_URI__ global variable
  • jest.config.js - glues all together

NPM dependencies:

Cache MongoDB binary in CI by putting this folder to the list of cached paths: ~/.mongodb-binaries

License

MIT © Vlad Holubiev

About

A working example of MongoDB with Jest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%