UNPKG

jest-mock-req-res

Version:

Jest mocks for Express Request and Response objects. Inspired by mock-req-res.

88 lines (87 loc) 2.17 kB
{ "name": "jest-mock-req-res", "version": "1.0.2", "description": "Jest mocks for Express Request and Response objects. Inspired by mock-req-res.", "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.module.js", "esmodule": "dist/index.modern.js", "umd:main": "dist/index.umd.js", "types": "dist/index.d.ts", "directories": { "lib": "dist", "test": "test" }, "files": [ "dist/*.js", "dist/*.d.ts" ], "scripts": { "prebuild": "npm ci", "build": "microbundle", "dev": "microbundle watch", "test": "jest --watch --runInBand", "coverage": "jest --coverage --runInBand", "prepublishOnly": "npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/Carnubak/jest-mock-req-res.git" }, "keywords": [ "jest", "express", "mock", "request", "response", "mock-req-res" ], "author": "Carnubak", "license": "MIT", "bugs": { "url": "https://github.com/Carnubak/jest-mock-req-res/issues" }, "homepage": "https://github.com/Carnubak/jest-mock-req-res#readme", "devDependencies": { "@commitlint/cli": "^9.0.1", "@commitlint/config-conventional": "^9.0.1", "@types/express": "^4.17.6", "@types/jest": "^26.0.3", "@typescript-eslint/eslint-plugin": "^3.5.0", "@typescript-eslint/parser": "^3.5.0", "eslint": "^7.4.0", "husky": "^4.2.5", "jest": "^26.1.0", "lint-staged": "^10.2.11", "microbundle": "^0.12.2", "prettier": "^2.0.5", "ts-jest": "^26.1.1", "typescript": "^3.9.6" }, "peerDependencies": { "jest": ">=13.x" }, "prettier": { "singleQuote": true, "printWidth": 120, "arrowParens": "avoid" }, "lint-staged": { "**/*.{ts,json,md}": [ "prettier --write" ] }, "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-commit": "lint-staged" } }, "jest": { "preset": "ts-jest", "coveragePathIgnorePatterns": [ "/node_modules/", "/test/testHelper.ts" ] } }