@vitest/spy
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18005