/* eslint-disable flowtype/require-valid-file-annotation */
const babelConfig = require('../babel.config');

// Custom Jest transform implementation that wraps babel-jest and injects our
// base config in babel.config.js. Allows for jest-specific customizations.
module.exports = require('babel-jest').createTransformer({
  ...babelConfig,
  plugins: [
    ...babelConfig.plugins,
    'dynamic-import-node',
    'require-context-hook',
  ],
});
