title: Jest: TypeError: replaceAll is not a function
body: <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll" rel="noreferrer"><code>String.prototype.replaceAll()</code></a> is a useful method and while building and executing everything works fine. However, all Jest-tests fail with the following error:</p>
  <pre><code>TypeError: replaceAll is not a function
  </code></pre>
  <p>These are my dependencies:</p>
  <pre><code>&quot;dependencies&quot;: {
    &quot;core-js&quot;: &quot;^3.6.5&quot;,
    &quot;vue&quot;: &quot;^2.6.11&quot;,
    &quot;vue-class-component&quot;: &quot;^7.2.3&quot;,
    &quot;vue-i18n&quot;: &quot;^8.22.0&quot;,
    &quot;vue-property-decorator&quot;: &quot;^8.4.2&quot;,
    &quot;vue-router&quot;: &quot;^3.3.4&quot;,
    &quot;vuex&quot;: &quot;^3.5.1&quot;
  },
  &quot;devDependencies&quot;: {
    &quot;@vue/test-utils&quot;: &quot;^1.1.0&quot;,
    &quot;jest-junit&quot;: &quot;^12.0.0&quot;,
    &quot;ts-jest&quot;: &quot;^26.4.1&quot;,
    &quot;typescript&quot;: &quot;~3.9.3&quot;,
    &quot;vue-jest&quot;: &quot;^3.0.7&quot;,
    &quot;vue-template-compiler&quot;: &quot;^2.6.10&quot;
  },
  </code></pre>
  <p>How can I fix this behavior?</p>