保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 9bdb95c9e34cef640534e5e5a1e2225a80442000
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,