String.prototype.replaceAll() is a useful method and while building and executing everything works fine. However, all Jest-tests fail with the following error: