Further reading
Take a look at the Babel web page to discover how to correctly configure the Babel env
preset. This is important for real-world applications, but we skipped over it in this chapter. You can find it at the following link:
https://babeljs.io/docs/en/babel-preset-env.
React’s act
function was introduced in React 17 and has seen updates in React 18. It is deceptively complex. See this blog post for some more discussion on how this function is used at the following link: https://reacttdd.com/understanding-act.
This book doesn’t make much use of Jest’s watch
functionality. In recent versions of Jest, this has seen some interesting updates, such as the ability to choose which files to watch. If you find rerunning tests a struggle, you might want to try it out. You can find more information at the following link: https://jestjs.io/docs/en/cli#watch.