@jest-mock/express
Advanced tools
Comparing version
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ module.exports = { |
import getMockReq from './src/request'; | ||
import getMockRes from './src/response'; | ||
export { getMockReq, getMockRes }; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getMockRes = exports.getMockReq = void 0; | ||
const request_1 = __importDefault(require("./src/request")); | ||
@@ -8,0 +9,0 @@ exports.getMockReq = request_1.default; |
@@ -0,0 +0,0 @@ import { Request } from 'express'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getMockReq = void 0; | ||
exports.getMockReq = (values = {}) => { | ||
@@ -4,0 +5,0 @@ return { |
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -7,3 +7,3 @@ import { Response, NextFunction } from 'express'; | ||
export declare const getMockRes: () => { | ||
res: Response<any>; | ||
res: Response; | ||
next: NextFunction; | ||
@@ -10,0 +10,0 @@ mockClear: () => void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getMockRes = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Will return a typed and mocked version of key Express components. |
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import getMockReq from './src/request' |
@@ -0,0 +0,0 @@ module.exports = { |
{ | ||
"name": "@jest-mock/express", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "A lightweight Jest mock for unit testing Express", | ||
@@ -45,2 +45,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ # @jest-mock/express |
@@ -0,0 +0,0 @@ // Tested Module |
@@ -0,0 +0,0 @@ // Libraries |
@@ -0,0 +0,0 @@ // Tested Module |
@@ -0,0 +0,0 @@ // Libraries |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
81950
1.87%1132
0.27%