The AriaComponents code is not pre-compiled, so there are additional setup steps beyond installing babel-jest.
First, ensure the project uses babel.config.json as the Babel configuration file (babel.config.js also works!). Then, whitelist aria-components in the manner outlined in this transformIgnorePatterns example.
babel.config.json
babel.config.js
aria-components
transformIgnorePatterns
jest: { transformIgnorePatterns: [ 'node_modules/(?!(aria-components)/)', ], }
There was an error while loading. Please reload this page.