Skip to content
Ryan Domingue edited this page Mar 29, 2020 · 1 revision

Testing

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)/)',
  ],
}
Clone this wiki locally