You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,12 @@ The most common use of this API is for specifying the module a given test intend
364
364
365
365
Returns the `jest` object for chaining.
366
366
367
+
### `jest.deepUnmock(moduleName)`
368
+
369
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
370
+
371
+
Returns the `jest` object for chaining.
372
+
367
373
### `jest.doMock(moduleName, factory, options)`
368
374
369
375
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-25.x/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,12 @@ The most common use of this API is for specifying the module a given test intend
286
286
287
287
Returns the `jest` object for chaining.
288
288
289
+
### `jest.deepUnmock(moduleName)`
290
+
291
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
292
+
293
+
Returns the `jest` object for chaining.
294
+
289
295
### `jest.doMock(moduleName, factory, options)`
290
296
291
297
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-26.x/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -290,6 +290,12 @@ The most common use of this API is for specifying the module a given test intend
290
290
291
291
Returns the `jest` object for chaining.
292
292
293
+
### `jest.deepUnmock(moduleName)`
294
+
295
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
296
+
297
+
Returns the `jest` object for chaining.
298
+
293
299
### `jest.doMock(moduleName, factory, options)`
294
300
295
301
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-27.x/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -290,6 +290,12 @@ The most common use of this API is for specifying the module a given test intend
290
290
291
291
Returns the `jest` object for chaining.
292
292
293
+
### `jest.deepUnmock(moduleName)`
294
+
295
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
296
+
297
+
Returns the `jest` object for chaining.
298
+
293
299
### `jest.doMock(moduleName, factory, options)`
294
300
295
301
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-28.x/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -290,6 +290,12 @@ The most common use of this API is for specifying the module a given test intend
290
290
291
291
Returns the `jest` object for chaining.
292
292
293
+
### `jest.deepUnmock(moduleName)`
294
+
295
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
296
+
297
+
Returns the `jest` object for chaining.
298
+
293
299
### `jest.doMock(moduleName, factory, options)`
294
300
295
301
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-29.0/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -332,6 +332,12 @@ The most common use of this API is for specifying the module a given test intend
332
332
333
333
Returns the `jest` object for chaining.
334
334
335
+
### `jest.deepUnmock(moduleName)`
336
+
337
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
338
+
339
+
Returns the `jest` object for chaining.
340
+
335
341
### `jest.doMock(moduleName, factory, options)`
336
342
337
343
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-29.1/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,12 @@ The most common use of this API is for specifying the module a given test intend
364
364
365
365
Returns the `jest` object for chaining.
366
366
367
+
### `jest.deepUnmock(moduleName)`
368
+
369
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
370
+
371
+
Returns the `jest` object for chaining.
372
+
367
373
### `jest.doMock(moduleName, factory, options)`
368
374
369
375
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-29.2/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,12 @@ The most common use of this API is for specifying the module a given test intend
364
364
365
365
Returns the `jest` object for chaining.
366
366
367
+
### `jest.deepUnmock(moduleName)`
368
+
369
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
370
+
371
+
Returns the `jest` object for chaining.
372
+
367
373
### `jest.doMock(moduleName, factory, options)`
368
374
369
375
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-29.3/JestObjectAPI.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,12 @@ The most common use of this API is for specifying the module a given test intend
364
364
365
365
Returns the `jest` object for chaining.
366
366
367
+
### `jest.deepUnmock(moduleName)`
368
+
369
+
Indicates that the module system should never return a mocked version of the specified module and its dependencies.
370
+
371
+
Returns the `jest` object for chaining.
372
+
367
373
### `jest.doMock(moduleName, factory, options)`
368
374
369
375
When using `babel-jest`, calls to `mock` will automatically be hoisted to the top of the code block. Use this method if you want to explicitly avoid this behavior.
0 commit comments