From 5ecca3d005c6e948b9cd87c93a02d679f6a28bab Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 12 Dec 2024 21:28:19 -0800 Subject: [PATCH] Added types for jest. --- package.json | 2 +- tsconfig.json | 2 ++ yarn.lock | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1c828d9b6b..d5d49701d4 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ "@svgr/rollup": "^8.1.0", "@svgr/webpack": "^8.1.0", "@types/cypress": "^1.1.3", - "@types/jest": "^29.5.12", + "@types/jest": "^29.5.14", "@types/node": "^20.9.0", "@types/react": "^18.2.41", "@types/react-dom": "^18.2.17", diff --git a/tsconfig.json b/tsconfig.json index 14ee5da8d2..82e7166f93 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,8 @@ "jsx": "preserve", "incremental": false, "baseUrl": "./src", + "types": ["jest"], + "typeRoots": ["node_modules/@types"], "paths": { "react": ["./node_modules/@types/react"], "assets/*": ["./assets/*"], diff --git a/yarn.lock b/yarn.lock index 10fe1caea6..03c840653a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2937,7 +2937,7 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@^29.5.12": +"@types/jest@^29.5.14": version "29.5.14" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.14.tgz#2b910912fa1d6856cadcd0c1f95af7df1d6049e5" integrity sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==