Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jest-mock/express

Package Overview
Dependencies
Maintainers
2
Versions
39
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 1.4.1 to 1.4.2

.github/workflows/build-test.yml

24

package.json
{
"name": "@jest-mock/express",
"version": "1.4.1",
"version": "1.4.2",
"description": "A lightweight Jest mock for unit testing Express",

@@ -11,3 +11,2 @@ "main": "dist/index.js",

"test-watch-all": "jest --watchAll",
"test-coverage": "yarn test && cat ./coverage/lcov.info | coveralls",
"lint": "tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix",

@@ -44,15 +43,14 @@ "build": "tsc",

"devDependencies": {
"@types/express": "^4.17.11",
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"coveralls": "^3.0.7",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"@types/express": "^4.17.12",
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"snyk": "^1.521.0",
"prettier": "^2.3.1",
"snyk": "^1.630.0",
"ts-jest": "^26.5.4",
"typescript": "^4.2.3"
"typescript": "^4.3.2"
},

@@ -59,0 +57,0 @@ "dependencies": {},

@@ -5,3 +5,3 @@ # @jest-mock/express

[![Build Status](https://travis-ci.org/bikk-uk/jest-mock-express.svg?branch=master)](https://travis-ci.org/bikk-uk/jest-mock-express)
[![Build and Test](https://github.com/bikk-uk/jest-mock-express/actions/workflows/build-test.yml/badge.svg?branch=master)](https://github.com/bikk-uk/jest-mock-express/actions/workflows/build-test.yml)
[![Coverage Status](https://coveralls.io/repos/github/bikk-uk/jest-mock-express/badge.svg?branch=master)](https://coveralls.io/github/bikk-uk/jest-mock-express?branch=master)

@@ -8,0 +8,0 @@ [![Known Vulnerabilities](https://snyk.io/test/github/bikk-uk/jest-mock-express/badge.svg?targetFile=package.json)](https://snyk.io/test/github/bikk-uk/jest-mock-express?targetFile=package.json)

@@ -130,3 +130,3 @@ // Types

// req.res is a mocked function
expect(((testReq.res as unknown) as jest.Mock).getMockName()).toBe('res mock default')
expect((testReq.res as unknown as jest.Mock).getMockName()).toBe('res mock default')

@@ -133,0 +133,0 @@ // req.next is a mocked function

@@ -171,3 +171,3 @@ // Libraries

return {
res: (response as unknown) as T,
res: response as unknown as T,
next: next as NextFunction,

@@ -174,0 +174,0 @@ mockClear: clearAllMocks,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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