@tapjs/intercept
Advanced tools
Comparing version 0.0.0-12 to 0.0.0-13
@@ -185,2 +185,4 @@ import { TapPlugin, TestBase } from '@tapjs/core'; | ||
* properties will throw an error. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -202,2 +204,4 @@ intercept<T extends object>(obj: T, prop: keyof T, desc?: PropertyDescriptor, strictMode?: boolean): InterceptResultsMethod; | ||
* `restore()` method on the returned function when you are done capturing. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -212,2 +216,4 @@ capture<T extends {}, M extends Methods<T>>(obj: T, method: M, impl?: (...a: any[]) => any): CaptureResultsMethod<T, M>; | ||
* passed to each call since the last time it was inspected. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -214,0 +220,0 @@ captureFn<F extends (this: any, ...a: any[]) => any>(original: F): ((...a: any[]) => any) & { |
@@ -25,2 +25,4 @@ "use strict"; | ||
* properties will throw an error. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -159,2 +161,4 @@ intercept(obj, prop, desc, strictMode = true) { | ||
* `restore()` method on the returned function when you are done capturing. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -207,2 +211,4 @@ capture(obj, method, impl = (..._) => { }) { | ||
* passed to each call since the last time it was inspected. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -209,0 +215,0 @@ captureFn(original) { |
@@ -185,2 +185,4 @@ import { TapPlugin, TestBase } from '@tapjs/core'; | ||
* properties will throw an error. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -202,2 +204,4 @@ intercept<T extends object>(obj: T, prop: keyof T, desc?: PropertyDescriptor, strictMode?: boolean): InterceptResultsMethod; | ||
* `restore()` method on the returned function when you are done capturing. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -212,2 +216,4 @@ capture<T extends {}, M extends Methods<T>>(obj: T, method: M, impl?: (...a: any[]) => any): CaptureResultsMethod<T, M>; | ||
* passed to each call since the last time it was inspected. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -214,0 +220,0 @@ captureFn<F extends (this: any, ...a: any[]) => any>(original: F): ((...a: any[]) => any) & { |
@@ -22,2 +22,4 @@ import { plugin as TeardownPlugin } from '@tapjs/after'; | ||
* properties will throw an error. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -156,2 +158,4 @@ intercept(obj, prop, desc, strictMode = true) { | ||
* `restore()` method on the returned function when you are done capturing. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -204,2 +208,4 @@ capture(obj, method, impl = (..._) => { }) { | ||
* passed to each call since the last time it was inspected. | ||
* | ||
* @group Spies, Mocks, and Fixtures | ||
*/ | ||
@@ -206,0 +212,0 @@ captureFn(original) { |
{ | ||
"name": "@tapjs/intercept", | ||
"version": "0.0.0-12", | ||
"version": "0.0.0-13", | ||
"description": "a built-in tap extension for t.intercept() and t.capture()", | ||
@@ -46,6 +46,6 @@ "type": "module", | ||
"peerDependencies": { | ||
"@tapjs/core": "0.0.0-12" | ||
"@tapjs/core": "0.0.0-13" | ||
}, | ||
"dependencies": { | ||
"@tapjs/after": "0.0.0-12", | ||
"@tapjs/after": "0.0.0-13", | ||
"@tapjs/stack": "0.0.0-4" | ||
@@ -52,0 +52,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
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
94607
931
+ Added@tapjs/after@0.0.0-13(transitive)
+ Added@tapjs/core@0.0.0-13(transitive)
+ Added@tapjs/test@0.0.0-13(transitive)
- Removed@tapjs/after@0.0.0-12(transitive)
- Removed@tapjs/core@0.0.0-12(transitive)
- Removed@tapjs/test@0.0.0-12(transitive)
Updated@tapjs/after@0.0.0-13