fullstorydev / fullstory-babel-plugin-annotate-react

A Babel plugin that annotates React components, making them easier to target with FullStory search
MIT License
30 stars 13 forks source link

update jest to version 29.6.1 and circle ci docker image to node 14 #141

Closed GGonryun closed 1 year ago

GGonryun commented 1 year ago

This PR fixes an error we're receiving about updating our jest to the latest version. But in the newest version of Jest (29.X) they have changed the way snapshot format's work and have deprecated support for Node 12. In order to maintain backwards compatibility a few extra parameters were added to our jest config. I also changed our circle ci node docker image to use node 14. Node 12 is EOL and is no longer supported by Jest.

These changes should not impact the actual behavior of the npm package.

read about snapshot format changes: https://jestjs.io/docs/29.0/upgrading-to-jest29#snapshot-format

more info on the new circle ci docker images: https://circleci.com/developer/images/image/cimg/node#image-name

more info on jest 29 breaking changes here: https://jestjs.io/blog/2022/08/25/jest-29