title: Telling Jest to not mock /moment(-timezone)?/ not working
body: <p>Getting an error with jest where anytime moment/moment.tz() is called, <code>TypeError: (0 , _moment2.default)(...).tz is not a function</code> is thrown. Below is my jest config with absolute paths redacted.</p>
  
  <pre><code>{
    "configs": [
      {
        "automock": false,
        "browser": false,
        "cache": true,
        "cacheDirectory": "&lt;absolute path&gt;",
        "clearMocks": true,
        "coveragePathIgnorePatterns": [
          "/node_modules/"
        ],
        "globals": {
          "window": true
        },
        "haste": {
          "providesModuleNodeModules": []
        },
        "moduleDirectories": [
          "node_modules",
          "src"
        ],
        "moduleFileExtensions": [
          "js",
          "vue"
        ],
        "moduleNameMapper": [
          [
            "^@/(.*)$",
            "/&lt;absolute path&gt;/src/$1"
          ],
          [
            "\\.(css|less)$",
            "/&lt;absolute path&gt;/test/__mocks__/styleMock.js"
          ]
        ],
        "modulePathIgnorePatterns": [],
        "name": "79986797be68f3008e950f2cefe0bbd1",
        "resetMocks": false,
        "resetModules": false,
        "rootDir": "&lt;absolute path&gt;",
        "roots": [
          "&lt;absolute path&gt;/src",
          "&lt;absolute path&gt;/test"
        ],
        "runner": "jest-runner",
        "setupFiles": [],
        "snapshotSerializers": [
          "/&lt;absolute path&gt;/node_modules/jest-serializer-html/index.js"
        ],
        "testEnvironment": "jest-environment-jsdom",
        "testMatch": [
          "**/__tests__/**/*.js?(x)",
          "**/?(*.)(spec|test).js?(x)"
        ],
        "testPathIgnorePatterns": [
          "node_modules/",
          "test/e2e/"
        ],
        "testRegex": "",
        "testRunner": "/&lt;absolute path&gt;/node_modules/jest-jasmine2/build/index.js",
        "testURL": "about:blank",
        "timers": "real",
        "transform": [
          [
            ".*\\.(vue)$",
            "/&lt;absolute path&gt;/node_modules/vue-jest/vue-jest.js"
          ],
          [
            ".*\\.js$",
            "/opt/cm/cm_frontend/cm/node_modules/babel-jest/build/index.js"
          ]
        ],
        "transformIgnorePatterns": [
          "/node_modules/"
        ],
        "unmockedModulePathPatterns": [
          "moment",
          "moment-timezone"
        ],
        "watchPathIgnorePatterns": []
      }
    ],
    "globalConfig": {
      "bail": false,
      "changedFilesWithAncestor": false,
      "collectCoverage": true,
      "collectCoverageFrom": [
        "src/components/**/*.{js,vue}",
        "src/mixins/**/*.js",
      ],
      "coverageDirectory": "&lt;ABSOLUTE PATH&gt;",
      "coverageReporters": [
        "json",
        "text",
        "lcov",
        "clover"
      ],
      "expand": false,
      "listTests": false,
      "mapCoverage": true,
      "maxWorkers": 7,
      "noStackTrace": false,
      "nonFlagArgs": [],
      "notify": false,
      "rootDir": "&lt;ROOT PATH HERE&gt;",
      "runTestsByPath": false,
      "testFailureExitCode": 1,
      "testPathPattern": "",
      "testResultsProcessor": null,
      "updateSnapshot": "new",
      "useStderr": false,
      "verbose": false,
      "watch": false,
      "watchman": true
    },
    "version": "21.2.1"
  }
  </code></pre>
  
  <p>I've tried telling jest to <code>jest.dontMock()</code> as well as <code>jest.unmock()</code> but to no avail. </p>
  
  <p>I've also tried <code>require.requireActual()</code>.</p>
  
  <p>I want to only mock moment when I specify per test (per file) with <code>jest.mock()</code>.</p>
  
  <p>What could be causing these issues? I am not mocking or unmocking moment anywhere in my test files. I've just simply used <code>@vue/test-utils</code> to mock entire computed properties using moment to get around this issue in the meantime.</p>