🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@jest-mock/express

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest-mock/express - npm Package Compare versions

Comparing version

to
0.9.5

0

.eslintrc.js

@@ -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 };

1

dist/index.js

@@ -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 {

@@ -0,0 +0,0 @@ "use strict";

2

dist/src/response.d.ts

@@ -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.

@@ -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