Socket
Socket
Sign inDemoInstall

@shelf/jest-mongodb

Package Overview
Dependencies
Maintainers
54
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shelf/jest-mongodb - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

lib/environment.d.ts

8

jest-preset.js

@@ -1,7 +0,3 @@

const {resolve} = require('path');
const preset = require('./lib').default;
module.exports = {
globalSetup: resolve(__dirname, './setup.js'),
globalTeardown: resolve(__dirname, './teardown.js'),
testEnvironment: resolve(__dirname, './environment.js'),
};
module.exports = preset;
{
"name": "@shelf/jest-mongodb",
"version": "4.0.0",
"version": "4.1.0",
"private": false,

@@ -20,17 +20,28 @@ "description": "Run your tests using Jest & MongoDB in Memory server",

},
"files": [
"jest-preset.js",
"lib/"
],
"scripts": {
"lint": "eslint . --fix --ext .js,.json,.ts --quiet",
"build": "rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'",
"build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib",
"lint": "eslint . --ext .js,.ts,.json --fix",
"lint:ci": "eslint . --ext .js,.ts,.json",
"prepack": "yarn build",
"test": "jest",
"test:repl": "MONGO_MEMORY_SERVER_FILE=jest-mongodb-config-repl.js jest"
"test:repl": "MONGO_MEMORY_SERVER_FILE=jest-mongodb-config-repl.js jest",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch"
},
"lint-staged": {
"*.{html,md,yml}": [
"prettier --write",
"git add"
"prettier --write"
],
"*.{js,json}": [
"eslint --fix",
"git add"
"*.{ts,js,json}": [
"eslint --fix"
]
},
"babel": {
"extends": "@shelf/babel-config/backend"
},
"prettier": "@shelf/prettier-config",

@@ -42,13 +53,19 @@ "jest": {

"debug": "4.3.4",
"mongodb-memory-server": "7.6.3",
"mongodb-memory-server": "8.8.0",
"uuid": "8.3.2"
},
"devDependencies": {
"@shelf/eslint-config": "2.18.0",
"@babel/cli": "7.18.10",
"@babel/core": "7.18.10",
"@shelf/babel-config": "1.2.0",
"@shelf/eslint-config": "2.22.0",
"@shelf/prettier-config": "1.0.0",
"eslint": "8.19.0",
"@shelf/tsconfig": "0.0.8",
"@types/jest": "28.1.6",
"@types/node": "16",
"eslint": "8.22.0",
"husky": "8.0.1",
"jest": "28.1.2",
"jest": "28.1.3",
"lint-staged": "13.0.3",
"mongodb": "4.7.0",
"mongodb": "4.9.0",
"prettier": "2.7.1",

@@ -55,0 +72,0 @@ "typescript": "4.7.4"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc