diff --git a/package.json b/package.json
index cb620065768249fdb41361f4c7149b22e3d3e071..9826dd95d267ad4370ab02221e6f05117f2b99e5 100644
--- a/package.json
+++ b/package.json
@@ -176,7 +176,7 @@
     "@types/github-url-from-git": "1.5.0",
     "@types/got": "9.6.9",
     "@types/ini": "1.3.30",
-    "@types/jest": "24.0.19",
+    "@types/jest": "24.0.23",
     "@types/js-yaml": "3.12.1",
     "@types/later": "1.2.5",
     "@types/lodash": "4.14.148",
diff --git a/test/types/jest.d.ts b/test/types/jest.d.ts
index ffc34fccce9380b7299be345a4ca625f5573ded5..6da40ff9c18d7e84c535a246282fb23bc4601739 100644
--- a/test/types/jest.d.ts
+++ b/test/types/jest.d.ts
@@ -1,9 +1,9 @@
 declare namespace jest {
-  interface Matchers<R> {
+  interface Matchers<R, T> {
     /**
      * only available in `test/website-docs.spec.js`
      * @param arg
      */
-    toContainOption(arg: R): void;
+    toContainOption(arg: T): void;
   }
 }
diff --git a/yarn.lock b/yarn.lock
index 0085ff4b8b8297bc239b455a6ca33e6e3148cfe0..f4465877a7f79131ee56f4533923383660b129ff 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1212,17 +1212,12 @@
     "@types/istanbul-lib-coverage" "*"
     "@types/istanbul-lib-report" "*"
 
-"@types/jest-diff@*":
-  version "20.0.1"
-  resolved "https://registry.yarnpkg.com/@types/jest-diff/-/jest-diff-20.0.1.tgz#35cc15b9c4f30a18ef21852e255fdb02f6d59b89"
-  integrity sha512-yALhelO3i0hqZwhjtcr6dYyaLoCHbAMshwtj6cGxTvHZAKXHsYGdff6E8EPw3xLKY0ELUTQ69Q1rQiJENnccMA==
-
-"@types/jest@24.0.19":
-  version "24.0.19"
-  resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.19.tgz#f7036058d2a5844fe922609187c0ad8be430aff5"
-  integrity sha512-YYiqfSjocv7lk5H/T+v5MjATYjaTMsUkbDnjGqSMoO88jWdtJXJV4ST/7DKZcoMHMBvB2SeSfyOzZfkxXHR5xg==
+"@types/jest@24.0.23":
+  version "24.0.23"
+  resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.23.tgz#046f8e2ade026fe831623e361a36b6fb9a4463e4"
+  integrity sha512-L7MBvwfNpe7yVPTXLn32df/EK+AMBFAFvZrRuArGs7npEWnlziUXK+5GMIUTI4NIuwok3XibsjXCs5HxviYXjg==
   dependencies:
-    "@types/jest-diff" "*"
+    jest-diff "^24.3.0"
 
 "@types/js-yaml@3.12.1":
   version "3.12.1"
@@ -4901,7 +4896,7 @@ jest-config@^24.9.0:
     pretty-format "^24.9.0"
     realpath-native "^1.1.0"
 
-jest-diff@^24.9.0:
+jest-diff@^24.3.0, jest-diff@^24.9.0:
   version "24.9.0"
   resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.9.0.tgz#931b7d0d5778a1baf7452cb816e325e3724055da"
   integrity sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==