title: npm test fails in Jenkins but passes in local
body: <p>npm test Fails</p>
  <p>Getting following error</p>
  <pre><code>FAIL src/Tests/Workflow.test.js
    ● Test suite failed to run
  
      ENOENT: no such file or directory, mkdir '/tmp/jest_4df/jest-transform-cache-4e6d562894209be60da269aa86f9333c-d1d5bfaad8659acd06069518d3e76e6c/48'
  
        at createDirectory (node_modules/jest-util/build/createDirectory.js:68:10)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:306:37)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:429:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
  
  FAIL src/Tests/app.test.js
    ● Test suite failed to run
  
      ENOENT: no such file or directory, mkdir '/tmp/jest_4df/jest-transform-cache-4e6d562894209be60da269aa86f9333c-d1d5bfaad8659acd06069518d3e76e6c/48'
  
        at createDirectory (node_modules/jest-util/build/createDirectory.js:68:10)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:306:37)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:429:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
  
  FAIL src/Tests/AuthenticationForm.test.js
    ● Test suite failed to run
  
      ENOENT: no such file or directory, mkdir '/tmp/jest_4df/jest-transform-cache-4e6d562894209be60da269aa86f9333c-d1d5bfaad8659acd06069518d3e76e6c/48'
  
        at createDirectory (node_modules/jest-util/build/createDirectory.js:68:10)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:306:37)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:429:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
  
  FAIL src/Tests/Authentication.test.js
    ● Test suite failed to run
  
      ENOENT: no such file or directory, mkdir '/tmp/jest_4df/jest-transform-cache-4e6d562894209be60da269aa86f9333c-d1d5bfaad8659acd06069518d3e76e6c/48'
  
        at createDirectory (node_modules/jest-util/build/createDirectory.js:68:10)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:306:37)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:429:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
  
  FAIL src/Tests/AuthenticationFormInputField.test.js
    ● Test suite failed to run
  
      ENOENT: no such file or directory, mkdir '/tmp/jest_4df/jest-transform-cache-4e6d562894209be60da269aa86f9333c-d1d5bfaad8659acd06069518d3e76e6c/48'
  
        at createDirectory (node_modules/jest-util/build/createDirectory.js:68:10)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:306:37)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:429:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
  
  FAIL src/Tests/UserInputForm.test.js
    ● Test suite failed to run
  
      ENOENT: no such file or directory, mkdir '/tmp/jest_4df/jest-transform-cache-4e6d562894209be60da269aa86f9333c-d1d5bfaad8659acd06069518d3e76e6c/48'
  
        at createDirectory (node_modules/jest-util/build/createDirectory.js:68:10)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:306:37)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:429:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
  
  FAIL src/Tests/UserInputFormField.test.js
    ● Test suite failed to run
  
      ENOENT: no such file or directory, mkdir '/tmp/jest_4df/jest-transform-cache-4e6d562894209be60da269aa86f9333c-d1d5bfaad8659acd06069518d3e76e6c/48'
  
        at createDirectory (node_modules/jest-util/build/createDirectory.js:68:10)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:306:37)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:429:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
  
  Test Suites: 7 failed, 7 total
  Tests:       0 total
  Snapshots:   0 total
  Time:        3.251 s
  Ran all test suites.
  npm ERR! Test failed.  See above for more details.
  [Pipeline] }
  [Pipeline] // withEnv
  [Pipeline] }
  [Pipeline] // stage
  [Pipeline] }
  [Pipeline] // withEnv
  [Pipeline] }
  [Pipeline] // node
  [Pipeline] End of Pipeline
  ERROR: script returned exit code 1
  Finished: FAILURE
  
  </code></pre>
  <p>The above issue seems to be like an issue in cache. I tried solving it using different solution given on stack overflow for something similar but nothing helped.</p>
  <p>I have tried to resolve it using following -</p>
  <ul>
  <li>Deleting node module folder and package-lock json</li>
  <li>npm cache clean --force</li>
  <li>npm cache verify</li>
  <li>npm install</li>
  </ul>
  <p>In my package.json I have this</p>
  <pre><code>{
    &quot;name&quot;: &quot;123,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.9&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.2.5&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.8.1&quot;,
      &quot;http-proxy-middleware&quot;: &quot;^1.0.6&quot;,
      &quot;react&quot;: &quot;^17.0.1&quot;,
      &quot;react-csv&quot;: &quot;^2.0.3&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;react-loader-spinner&quot;: &quot;^4.0.0&quot;,
      &quot;react-promise-tracker&quot;: &quot;^2.1.0&quot;,
      &quot;react-scripts&quot;: &quot;4.0.3&quot;,
      &quot;react-select&quot;: &quot;^4.1.0&quot;,
      &quot;react-select-event&quot;: &quot;^5.2.0&quot;,
      &quot;react-test-renderer&quot;: &quot;^17.0.1&quot;,
      &quot;web-vitals&quot;: &quot;^1.1.0&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;,
      &quot;test:coverage&quot;: &quot;react-scripts test --coverage&quot;,
      &quot;test:update&quot;: &quot;react-scripts test --updateSnapshot&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {}
  }
  
  
  </code></pre>