From 26fa49f4b0aa658d65a21fffe828f39e78302573 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 17:46:58 +0800
Subject: [PATCH] Revert "Update#139889 [ 快速篩選 ] 年資文案調整"

---
 PAMapp/node_modules/ts-jest/utils/index.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/PAMapp/node_modules/ts-jest/utils/index.js b/PAMapp/node_modules/ts-jest/utils/index.js
index 48929af..3933156 100644
--- a/PAMapp/node_modules/ts-jest/utils/index.js
+++ b/PAMapp/node_modules/ts-jest/utils/index.js
@@ -4,12 +4,25 @@
 
 module.exports = {
   get mocked() {
+    if (!process.env.DISABLE_MOCKED_WARNING) {
+      console.warn(
+        '\n`mocked` util function is now deprecated and has been moved to Jest repository,' +
+          ' see https://github.com/facebook/jest/pull/12089. In `ts-jest` v28.0.0, `mocked` function will be completely removed.' +
+          ' Users are encouraged to use to Jest v27.4.0 or above to have `mocked` function available from `jest-mock`. ' +
+          'One can disable this warning by setting environment variable process.env.DISABLE_MOCKED_WARNING=true\n'
+      )
+    }
+
     return mocked
   },
   get createJestPreset() {
+    console.warn('ts-jest[main] (WARN) Replace any occurrences of "ts-jest/utils" with just "ts-jest".')
+
     return createJestPreset
   },
   get pathsToModuleNameMapper() {
+    console.warn('ts-jest[main] (WARN) Replace any occurrences of "ts-jest/utils" with just "ts-jest".')
+
     return pathsToModuleNameMapper
   },
 }

--
Gitblit v1.8.0