Skip to content

Commit

Permalink
docs: update removal details in no-deprecated-functions (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Sep 4, 2022
1 parent a46ce40 commit 48e3e28
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/rules/no-deprecated-functions.md
Expand Up @@ -20,13 +20,12 @@ This rule can also autofix a number of these deprecations for you.

### `jest.resetModuleRegistry`

This function was renamed to `resetModules` in Jest 15, and is scheduled for
removal in Jest 27.
This function was renamed to `resetModules` in Jest 15 and removed in Jest 27.

### `jest.addMatchers`

This function was replaced with `expect.extend` in Jest 17, and is scheduled for
removal in Jest 27.
This function was replaced with `expect.extend` in Jest 17 and removed in
Jest 27.

### `require.requireActual` & `require.requireMock`

Expand All @@ -41,10 +40,10 @@ the release of Jest 26 saw them removed from the `require` function altogether.

### `jest.runTimersToTime`

This function was renamed to `advanceTimersByTime` in Jest 22, and is scheduled
for removal in Jest 27.
This function was renamed to `advanceTimersByTime` in Jest 22 and removed in
Jest 27.

### `jest.genMockFromModule`

This function was renamed to `createMockFromModule` in Jest 26, and is scheduled
for removal in a future version of Jest.
for removal in Jest 30.

0 comments on commit 48e3e28

Please sign in to comment.