From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:48:15 +0800 Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改 --- PAMapp/node_modules/jest-runtime/build/index.js | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/PAMapp/node_modules/jest-runtime/build/index.js b/PAMapp/node_modules/jest-runtime/build/index.js index 03d45bc..dd185a2 100644 --- a/PAMapp/node_modules/jest-runtime/build/index.js +++ b/PAMapp/node_modules/jest-runtime/build/index.js @@ -1900,7 +1900,7 @@ if (mockMetadata == null) { throw new Error( `Failed to get mock metadata: ${modulePath}\n\n` + - `See: https://jestjs.io/docs/manual-mocks#content` + 'See: https://jestjs.io/docs/manual-mocks#content' ); } @@ -2053,6 +2053,8 @@ } _createJestObjectFor(from) { + var _this$_moduleMocker$m, _this$_moduleMocker$m2; + const disableAutomock = () => { this._shouldAutoMock = false; return jestObject; @@ -2190,6 +2192,20 @@ const spyOn = this._moduleMocker.spyOn.bind(this._moduleMocker); + const mocked = + (_this$_moduleMocker$m = + (_this$_moduleMocker$m2 = this._moduleMocker.mocked) === null || + _this$_moduleMocker$m2 === void 0 + ? void 0 + : _this$_moduleMocker$m2.bind(this._moduleMocker)) !== null && + _this$_moduleMocker$m !== void 0 + ? _this$_moduleMocker$m + : () => { + throw new Error( + 'Your test environment does not support `mocked`, please update it.' + ); + }; + const setTimeout = timeout => { if (this._environment.global.jasmine) { this._environment.global.jasmine._DEFAULT_TIMEOUT_INTERVAL = timeout; @@ -2239,6 +2255,7 @@ isMockFunction: this._moduleMocker.isMockFunction, isolateModules, mock, + mocked, requireActual: this.requireActual.bind(this, from), requireMock: this.requireMock.bind(this, from), resetAllMocks, -- Gitblit v1.8.0