@shelf/jest-mongodb

v4.3.2
Run your tests using Jest & MongoDB in Memory server
jest jest environment jest preset mongodb mongodb local

lint

eslint . --ext .js,.ts,.json --fix

test

jest

build

rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'

lint:ci

eslint . --ext .js,.ts,.json

prepack

yarn build

test:repl

MONGO_MEMORY_SERVER_FILE=jest-mongodb-config-repl.js jest

type-check

tsc --noEmit

build:types

tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib

type-check:watch

npm run type-check -- --watch
npm i @shelf/jest-mongodb

Metadata

  • MIT
  • >=16
  • Vlad Holubiev
  • released 5/9/2024

Downloads