Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored May 22, 2019
1 parent 7cf2431 commit c19bdf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jest-environment/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export interface Jest {
* whether the module should receive a mock implementation or not.
*
* @example
```
jest.mock('../myModule', () => {
// Require the original module to not be mocked...
const originalModule = jest.requireActual(moduleName);
Expand All @@ -150,6 +151,7 @@ export interface Jest {
});
const getRandom = require('../myModule').getRandom;
```
*/
requireActual: (moduleName: string) => unknown;
/**
Expand Down

0 comments on commit c19bdf4

Please sign in to comment.