rickvanlieshout.com/tests/jest-preprocess.js

11 lines
268 B
JavaScript
Raw Normal View History

2018-11-09 18:08:48 +01:00
'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);