I have added @ArcGIS/maps-components-react 4.32.14 to our React 18.3.1 project. I am having issues running Jest tests on the new component.

Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration


This error is saying that @babel/plugin-transform-class-static-block is not enabled. But that package is included in '@babel/preset-env' (babel-plugin-transform-class-static-block )
I went ahead and tried to install it separately as a dev dependency anyway and add static block to the babel.config.js below:
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-react'
],
plugins: [
'@babel/plugin-transform-class-static-block',
'@babel/plugin-transform-class-properties'
]
}
The project adds configurations through the script/cli options:
"react-scripts test --silent --coverage --setupFilesAfterEnv='./src/.setupTests.js' --transformIgnorePatterns \"node_modules/(?!(@arcgis|@esri/calcite-components|@stencil/core|primereact|primeicons|primeflex|axios)/)\""