rickvanlieshout.com/tests/jest-preprocess.js
2018-11-09 20:08:48 +03:00

11 lines
268 B
JavaScript

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