Skip to content

Commit da89a11

Browse files
committed
docs(no-deprecated-functions): update timeline for deprecations
1 parent 73a5d36 commit da89a11

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

docs/rules/no-deprecated-functions.md

+11-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Warns on usage of deprecated functions (no-deprecated-functions)
22

3-
Over the years jest has accrued some debt in the form of functions that have
3+
Over the years Jest has accrued some debt in the form of functions that have
44
either been renamed for clarity, or replaced with more powerful APIs.
55

66
While typically these deprecated functions are kept in the codebase for a number
@@ -13,31 +13,28 @@ what to replace them with.
1313

1414
This rule can also autofix a number of these deprecations for you.
1515

16-
### `require.requireActual.` & `require.requireMock`
16+
### `require.requireActual` & `require.requireMock`
1717

18-
These functions were removed in Jest 26.
18+
These functions were replaced in Jest 21 and removed in Jest 26.
1919

20-
Originally in the early days of jest, the `requireActual`& `requireMock`
21-
functions were placed onto the `require` function.
20+
Originally, the `requireActual` & `requireMock` the `requireActual`&
21+
`requireMock` functions were placed onto the `require` function.
2222

2323
These functions were later moved onto the `jest` global, and their use via
2424
`require` deprecated. Finally, the release of Jest 26 saw them removed from the
2525
`require` function all together.
2626

27-
The PR implementing the removal can be found
28-
[here](https://github.com/facebook/jest/pull/9854).
29-
3027
### `jest.addMatchers`
3128

32-
This function has been replaced with `expect.extend`, and will ideally be
33-
removed in Jest 27.
29+
This function has been replaced with `expect.extend`, and is scheduled for
30+
removal in Jest 27.
3431

3532
### `jest.resetModuleRegistry`
3633

37-
This function has been renamed to `resetModules`, and will ideally be removed in
38-
Jest 27.
34+
This function has been renamed to `resetModules`, and is scheduled for removal
35+
in Jest 26.
3936

4037
### `jest.runTimersToTime`
4138

42-
This function has been renamed to `advanceTimersByTime`, and will ideally be
43-
removed in Jest 27.
39+
This function has been renamed to `advanceTimersByTime`, and is scheduled for
40+
removal in Jest 26.

0 commit comments

Comments
 (0)