Socket
Socket
Sign inDemoInstall

@vitest/spy

Package Overview
Dependencies
Maintainers
3
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/spy - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

dist/index.d.ts

@@ -149,3 +149,3 @@ interface MockResultReturn<T> {

*/
mockImplementation(fn: ((...args: TArgs) => TReturns) | (() => Promise<TReturns>)): this;
mockImplementation(fn: ((...args: TArgs) => TReturns)): this;
/**

@@ -158,3 +158,3 @@ * Accepts a function that will be used as a mock implementation during the next call. Can be chained so that multiple function calls produce different results.

*/
mockImplementationOnce(fn: ((...args: TArgs) => TReturns) | (() => Promise<TReturns>)): this;
mockImplementationOnce(fn: ((...args: TArgs) => TReturns)): this;
/**

@@ -161,0 +161,0 @@ * Overrides the original mock implementation temporarily while the callback is being executed.

{
"name": "@vitest/spy",
"type": "module",
"version": "1.1.1",
"version": "1.1.2",
"description": "Lightweight Jest compatible spy implementation",

@@ -6,0 +6,0 @@ "license": "MIT",

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