-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Ryan Domingue edited this page Mar 29, 2020
·
1 revision
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.
jest: {
transformIgnorePatterns: [
'node_modules/(?!(aria-components)/)',
],
}