rickvanlieshout.com/tests/jest-preprocess.js
2019-04-08 11:55:23 -04:00

13 lines
318 B
JavaScript

'use strict';
const babelOptions = {
presets: ['@babel/react', '@babel/env'],
plugins: [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-flow-strip-types',
],
};
module.exports = require('babel-jest').createTransformer(babelOptions);