New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/jest-koa-mocks

Package Overview
Dependencies
Maintainers
9
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/jest-koa-mocks - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

1

dist/create-mock-context/create-mock-context.d.ts

@@ -12,2 +12,3 @@ /// <reference types="koa" />

body?: any;
session?: any;
};

@@ -14,0 +15,0 @@ }

2

package.json
{
"name": "@shopify/jest-koa-mocks",
"version": "2.0.3",
"version": "2.0.4",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "",

# `@shopify/jest-koa-mocks`
Utilities to easily stub Koa context and cookies. The middleware are aimed to help you write unit tests for your koa middleware without needing to set up any kind of actual server in your test environment. When test writing is easy and fun you'll want to write more tests ✨😎
Utilities to easily stub Koa context and cookies. The utilities are designed to help you write unit tests for your koa middleware without needing to set up any kind of actual server in your test environment. When test writing is easy and fun you'll want to write more tests. ✨😎

@@ -5,0 +5,0 @@ ## Installation

@@ -14,3 +14,6 @@ import {URL} from 'url';

cookies: MockCookies;
request: Context['Request'] & {body?: any};
request: Context['Request'] & {
body?: any;
session?: any;
};
}

@@ -17,0 +20,0 @@

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