UNPKG

openapi-nodegen-mem-mongo-loader

Version:

Helper class to load mongo db memory and then mongoose with 2 functions setup and stop - for unit testing purposes

55 lines (54 loc) 1.62 kB
{ "name": "openapi-nodegen-mem-mongo-loader", "version": "2.1.0", "description": "Helper class to load mongo db memory and then mongoose with 2 functions setup and stop - for unit testing purposes", "licence": "MIT", "main": "./build/index.js", "types": "build/index.d.ts", "scripts": { "install:githooks": "cp ./githooks/* .git/hooks", "test": "npm run lint && npm run test:unit", "test:unit": "npm run build && jest", "test:unit:single": "jest --collect-coverage false", "lint": "tslint --project tsconfig.json --fix", "lint:fix": "tslint --project tsconfig.json --fix", "build:tocs": "npx doctoc .", "build": "rm -fR ./build && ttsc -p . -d --declarationDir build", "build:watch": "ttsc --watch -p .", "start": "node cli.js", "prepublishOnly": "npm run lint && npm run test" }, "repository": { "type": "git", "url": "https://github.com/johndcarmichael/openapi-nodegen-emailer.git" }, "keywords": [ "openapi", "TypeScript", "node.js", "mongodb", "mongoose", "mongodb-memory-server" ], "dependencies": { "mongodb-memory-server": "^8.2.0" }, "devDependencies": { "@types/jest": "^27.0.2", "@types/mongodb": "^4.0.7", "@types/mongoose": "^5.11.97", "@zerollup/ts-transform-paths": "^1.7.18", "codecov": "^3.8.3", "eslint": "^7.14.0", "hasha": "^5.2.2", "jest": "^27.2.5", "mongoose": "~6.1.6", "ts-jest": "^27.0.5", "tslint": "^6.1.3", "ttypescript": "^1.5.12", "typescript": "^4.4.3" }, "peerDependencies": { "mongoose": "~5.13.8 || || ^6.*" } }