1 // Custom Jest transform implementation that injects test-specific babel presets.
2 module
.exports
= require('babel-jest').default.createTransformer({
3 presets
: ['@babel/preset-env', ['@babel/preset-react', { runtime
: 'automatic' }], '@babel/preset-typescript'],
5 '@babel/plugin-proposal-object-rest-spread',
6 '@babel/plugin-transform-runtime',
7 '@babel/plugin-proposal-optional-chaining',
8 'transform-class-properties',
9 'transform-require-context',