
TL:DR Make sure your version of Jest is up to date.
Short and sweet if you are seeing this it’s caused by running an older version of Jest, in our case 25.5.4.
Upgrade to the latest, or at least 26.6.3, and it will be resolved.
You can check if you’re using the latest version with:
npm outdated jest
Upgrading can be done with
npm install --save-dev jest@latest
The topic of how to handle the evergreen nature of the web and its ecology I’ve talked about before see Impact of Evergreen Platforms on Development and how not to handle it I’ll come back to it with again I’m sure.
TL:DR Make sure your version of Jest is up to date.